Template Struct IndexSpecificTensorBlockComparator

Struct Documentation

template<template<class> class Comparator, template<class> class Selector, bool fallback>
struct IndexSpecificTensorBlockComparator

Similar to TensorBlockComparator but in case of tensors that compare equal based on their tensor blocks (slots), they are compared on if and where they have specific indices (compared the usual way, including ordinals).

Public Functions

IndexSpecificTensorBlockComparator() = default
inline IndexSpecificTensorBlockComparator(std::vector<Index> indices)
inline const std::vector<Index> &indices() const
inline void set_indices(std::vector<Index> indices)
inline auto operator()(const Tensor &lhs, const Tensor &rhs) const
inline bool operator()(const Expr &lhs, const Expr &rhs) const
inline bool operator()(const ExprPtr &lhs, const ExprPtr &rhs) const