Go to the documentation of this file.
26 #ifndef TILEDARRAY_EXPRESSIONS_PRODUCT_H__INCLUDED
27 #define TILEDARRAY_EXPRESSIONS_PRODUCT_H__INCLUDED
32 namespace expressions {
54 if (left_indices && right_indices) {
55 if (left_indices.
size() == right_indices.
size() &&
57 result = TensorProduct::Hadamard;
59 result = TensorProduct::Contraction;
70 if (result == TensorProduct::Hadamard)
78 #endif // TILEDARRAY_EXPRESSIONS_PRODUCT_H__INCLUDED
bool is_permutation(const IndexList &other) const
Check that this index list is a permutation of other.
#define TA_ASSERT(EXPR,...)
@ Hadamard
fused indices only
TensorProduct compute_product_type(const IndexList &left_indices, const IndexList &right_indices)
TensorProduct
types of binary tensor products known to TiledArray
unsigned int size() const
Returns the number of elements in the index list.