MPQC
3.0.0-alpha
|
Tensor reference class. More...
#include <mpqc/math/tensor.hpp>
Public Member Functions | |
Tensor (const size_t(&dims)[N]) | |
Tensor (const Tensor &u) | |
template<typename U > | |
Tensor (const TensorRef< U, N, Order > &u) | |
Tensor & | operator= (const Tensor &u) |
Public Member Functions inherited from mpqc::TensorRef< T, N, Order > | |
TensorRef (T *data, const size_t(&dims)[N]) | |
T * | data () |
const T * | data () const |
TensorRef & | operator= (const TensorRef &u) |
fast assignment operator | |
template<typename U > | |
TensorRef & | operator= (const TensorRef< U, N, Order > &u) |
fast assignment operator | |
template<typename U > | |
TensorRef & | operator+= (const TensorRef< U, N, Order > &u) |
fast += operator | |
template<typename U > | |
TensorRef & | operator-= (const TensorRef< U, N, Order > &u) |
fast -= operator | |
template<typename U > | |
TensorRef & | operator*= (const U &u) |
fast *= operator | |
template<typename U > | |
TensorRef & | operator/= (const U &u) |
fast /= operator | |
Public Member Functions inherited from mpqc::TensorBase< T, N, Order > | |
TensorBase (T *data, const size_t *dims, const size_t *ld=NULL) | |
size_t | size () const |
const Dims & | dims () const |
template<typename U , class O > | |
void | operator= (const TensorBase< const U, N, O > &u) |
void | operator= (const TensorBase &o) |
template<class Seq > | |
T & | operator() (const detail::Tensor::integral_tie< Seq > &idx) |
element-access operator | |
template<class Seq > | |
const T & | operator() (const detail::Tensor::integral_tie< Seq > &idx) const |
element-access operator | |
template<class Seq > | |
TensorBase< T, N, Order > | operator() (const detail::Tensor::range_tie< Seq > &tie) |
template<class Seq > | |
TensorBase< const T, N, Order > | operator() (const detail::Tensor::range_tie< Seq > &tie) const |
Static Protected Member Functions | |
static T * | allocate (const size_t(&dims)[N]) |
Additional Inherited Members | |
Public Types inherited from mpqc::TensorBase< T, N, Order > | |
typedef boost::array< size_t, N > | Dims |
typedef boost::array< size_t, N > | Strides |
Static Public Attributes inherited from mpqc::TensorBase< T, N, Order > | |
static const size_t | RANK = N |
Protected Member Functions inherited from mpqc::TensorRef< T, N, Order > | |
template<class F > | |
F | apply (F f) |
template<class F , typename Iterator > | |
F | apply (F f, Iterator it) |
Protected Attributes inherited from mpqc::TensorBase< T, N, Order > | |
T * | data_ |
Dims | dims_ |
Strides | strides_ |
Tensor reference class.