MPQC  3.0.0-alpha
mpqc::TensorRef< T, N, Order > Struct Template Reference

Tensor reference class. More...

#include <mpqc/math/tensor/ref.hpp>

Inheritance diagram for mpqc::TensorRef< T, N, Order >:
mpqc::TensorBase< T, N, Order > mpqc::Tensor< T, N, Order >

Public Member Functions

 TensorRef (T *data, const size_t(&dims)[N])
 
T * data ()
 
const T * data () const
 
TensorRefoperator= (const TensorRef &u)
 fast assignment operator
 
template<typename U >
TensorRefoperator= (const TensorRef< U, N, Order > &u)
 fast assignment operator
 
template<typename U >
TensorRefoperator+= (const TensorRef< U, N, Order > &u)
 fast += operator
 
template<typename U >
TensorRefoperator-= (const TensorRef< U, N, Order > &u)
 fast -= operator
 
template<typename U >
TensorRefoperator*= (const U &u)
 fast *= operator
 
template<typename U >
TensorRefoperator/= (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 >
apply (F f)
 
template<class F , typename Iterator >
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_
 

Detailed Description

template<typename T, size_t N, class Order = TensorColumnMajor>
struct mpqc::TensorRef< T, N, Order >

Tensor reference class.

All data is assumed to be contiguous.


The documentation for this struct was generated from the following file:

Generated at Sun Jan 26 2020 23:24:02 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.