MPQC
3.0.0-alpha
|
Tensor reference class. More...
#include <mpqc/math/tensor/ref.hpp>
Public Member Functions | |
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 |
Protected Member Functions | |
template<class F > | |
F | apply (F f) |
template<class F , typename Iterator > | |
F | apply (F f, Iterator it) |
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 Attributes inherited from mpqc::TensorBase< T, N, Order > | |
T * | data_ |
Dims | dims_ |
Strides | strides_ |
Tensor reference class.
All data is assumed to be contiguous.