28 #include <type_traits> 37 template<
class tensor_type>
59 template<class X = tensor_type, typename std::enable_if<std::is_base_of<Tensor, typename std::decay<X>::type>::value,
int>::type = 0>
64 template<class X = tensor_type, typename std::enable_if<std::is_base_of<TensorNetwork, typename std::decay<X>::type>::value,
int>::type = 0>
66 template<
class X = tensor_type>
71 template<class X = tensor_type, typename std::enable_if<std::is_base_of<TensorNetwork, typename std::decay<X>::type>::value,
int>::type = 0>
73 template<
class X = tensor_type>
81 template<
class tensor_type>
88 template<
class tensor_type>
90 return operator*(_factor, std::move(_tensor));
93 template<
class tensor_type>
Internal representation of an read and write and moveable indexed Tensor or TensorNetwork.
Internal representation of an readable indexed Tensor or TensorNetwork.
IndexedTensorMoveable()
Creates an empty indexed Tensor, should only be used internally.
The main namespace of xerus.
IndexedTensorMoveable(IndexedTensorReadOnly< Tensor > &_other)
IndexedTensorMoveable< tensor_type > operator/(IndexedTensorMoveable< tensor_type > &&_tensor, const value_t _divisor)
tensor_type * tensorObject
Non-const pointer to the tensor object.
Abstract internal representation of an read and writeable indexed Tensor or TensorNetwork.
double value_t
The type of values to be used by xerus.
Header file for the IndexedTensorWritable class.
IndexedTensorMoveable< tensor_type > operator*(const value_t _factor, IndexedTensorMoveable< tensor_type > &&_tensor)