Stokhos Package Browser (Single Doxygen Collection) Version of the Day
|
Data structure storing a dense 3-tensor C(i,j,k). More...
#include <Stokhos_Dense3Tensor.hpp>
Public Member Functions | |
Dense3Tensor (ordinal_type sz) | |
Constructor. | |
~Dense3Tensor () | |
Destructor. | |
ordinal_type | size () const |
Return size. | |
const value_type & | operator() (ordinal_type i, ordinal_type j, ordinal_type k) const |
Get value (i,j,k) | |
value_type & | operator() (ordinal_type i, ordinal_type j, ordinal_type k) |
Get value (i,j,k) | |
ordinal_type | num_values (ordinal_type k) const |
Return number of non-zero's in Cijk for a given k. | |
void | value (ordinal_type k, ordinal_type l, ordinal_type &i, ordinal_type &j, value_type &c) const |
Get value (i,j,k) using sparse access. | |
void | print (std::ostream &os) const |
Print tensor. | |
Protected Attributes | |
ordinal_type | l |
Size of each dimension. | |
Teuchos::Array< value_type > | Cijk_values |
Dense tensor array. | |
Private Member Functions | |
Dense3Tensor (const Dense3Tensor &) | |
Dense3Tensor & | operator= (const Dense3Tensor &b) |
Data structure storing a dense 3-tensor C(i,j,k).
Definition at line 57 of file Stokhos_Dense3Tensor.hpp.
Stokhos::Dense3Tensor< ordinal_type, value_type >::Dense3Tensor | ( | ordinal_type | sz | ) |
Constructor.
Definition at line 45 of file Stokhos_Dense3TensorImp.hpp.
Stokhos::Dense3Tensor< ordinal_type, value_type >::~Dense3Tensor |
Destructor.
Definition at line 53 of file Stokhos_Dense3TensorImp.hpp.
|
private |
ordinal_type Stokhos::Dense3Tensor< ordinal_type, value_type >::size |
Return size.
Definition at line 60 of file Stokhos_Dense3TensorImp.hpp.
const value_type & Stokhos::Dense3Tensor< ordinal_type, value_type >::operator() | ( | ordinal_type | i, |
ordinal_type | j, | ||
ordinal_type | k | ||
) | const |
Get value (i,j,k)
Definition at line 68 of file Stokhos_Dense3TensorImp.hpp.
value_type & Stokhos::Dense3Tensor< ordinal_type, value_type >::operator() | ( | ordinal_type | i, |
ordinal_type | j, | ||
ordinal_type | k | ||
) |
Get value (i,j,k)
Definition at line 76 of file Stokhos_Dense3TensorImp.hpp.
ordinal_type Stokhos::Dense3Tensor< ordinal_type, value_type >::num_values | ( | ordinal_type | k | ) | const |
Return number of non-zero's in Cijk for a given k.
Definition at line 84 of file Stokhos_Dense3TensorImp.hpp.
void Stokhos::Dense3Tensor< ordinal_type, value_type >::value | ( | ordinal_type | k, |
ordinal_type | l, | ||
ordinal_type & | i, | ||
ordinal_type & | j, | ||
value_type & | c | ||
) | const |
Get value (i,j,k) using sparse access.
Definition at line 92 of file Stokhos_Dense3TensorImp.hpp.
void Stokhos::Dense3Tensor< ordinal_type, value_type >::print | ( | std::ostream & | os | ) | const |
Print tensor.
Definition at line 103 of file Stokhos_Dense3TensorImp.hpp.
|
private |
|
protected |
Size of each dimension.
Definition at line 97 of file Stokhos_Dense3Tensor.hpp.
|
protected |
Dense tensor array.
Definition at line 100 of file Stokhos_Dense3Tensor.hpp.