Chi-Tech
chi_math::TensorRNX< R, N, NumberFormat > Struct Template Reference

#include <chi_math_tensorRNX.h>

Data Structures

struct  RecursiveAccessor
 

Public Member Functions

 TensorRNX ()
 
 TensorRNX (const NumberFormat value)
 
TensorRNXoperator= (const TensorRNX &rhs)
 
VectorNX< N, NumberFormat > operator[] (const int i)
 

Data Fields

std::vector< VectorNX< N, NumberFormat > > entries
 
const unsigned int rank
 
const unsigned int dimension
 

Detailed Description

template<int R, int N, class NumberFormat>
struct chi_math::TensorRNX< R, N, NumberFormat >

Generalized tensor with rank-R dimension-N and arbitrary number format.

Author
Jan.

Definition at line 21 of file chi_math_tensorRNX.h.

Constructor & Destructor Documentation

◆ TensorRNX() [1/2]

template<int R, int N, class NumberFormat >
chi_math::TensorRNX< R, N, NumberFormat >::TensorRNX ( )
inline

Default constructor.

Definition at line 28 of file chi_math_tensorRNX.h.

◆ TensorRNX() [2/2]

template<int R, int N, class NumberFormat >
chi_math::TensorRNX< R, N, NumberFormat >::TensorRNX ( const NumberFormat  value)
inline

Constructor with value.

Definition at line 38 of file chi_math_tensorRNX.h.

Member Function Documentation

◆ operator=()

template<int R, int N, class NumberFormat >
TensorRNX & chi_math::TensorRNX< R, N, NumberFormat >::operator= ( const TensorRNX< R, N, NumberFormat > &  rhs)
inline

Component-wise copy.

Definition at line 48 of file chi_math_tensorRNX.h.

◆ operator[]()

template<int R, int N, class NumberFormat >
VectorNX< N, NumberFormat > chi_math::TensorRNX< R, N, NumberFormat >::operator[] ( const int  i)

Field Documentation

◆ dimension

template<int R, int N, class NumberFormat >
const unsigned int chi_math::TensorRNX< R, N, NumberFormat >::dimension

Definition at line 25 of file chi_math_tensorRNX.h.

◆ entries

template<int R, int N, class NumberFormat >
std::vector<VectorNX<N,NumberFormat> > chi_math::TensorRNX< R, N, NumberFormat >::entries

Definition at line 23 of file chi_math_tensorRNX.h.

◆ rank

template<int R, int N, class NumberFormat >
const unsigned int chi_math::TensorRNX< R, N, NumberFormat >::rank

Definition at line 24 of file chi_math_tensorRNX.h.


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