Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
Stokhos::Dense3Tensor< ordinal_type, value_type > Class Template Reference

Data structure storing a dense 3-tensor C(i,j,k). More...

#include <Stokhos_Dense3Tensor.hpp>

Inheritance diagram for Stokhos::Dense3Tensor< ordinal_type, value_type >:
Inheritance graph
[legend]

Public Member Functions

 Dense3Tensor (ordinal_type sz)
 Constructor. More...
 
 ~Dense3Tensor ()
 Destructor. More...
 
ordinal_type size () const
 Return size. More...
 
const value_type & operator() (ordinal_type i, ordinal_type j, ordinal_type k) const
 Get value (i,j,k) More...
 
value_type & operator() (ordinal_type i, ordinal_type j, ordinal_type k)
 Get value (i,j,k) More...
 
ordinal_type num_values (ordinal_type k) const
 Return number of non-zero's in Cijk for a given k. More...
 
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. More...
 
void print (std::ostream &os) const
 Print tensor. More...
 

Protected Attributes

ordinal_type l
 Size of each dimension. More...
 
Teuchos::Array< value_type > Cijk_values
 Dense tensor array. More...
 

Private Member Functions

 Dense3Tensor (const Dense3Tensor &)
 
Dense3Tensoroperator= (const Dense3Tensor &b)
 

Detailed Description

template<typename ordinal_type, typename value_type>
class Stokhos::Dense3Tensor< ordinal_type, value_type >

Data structure storing a dense 3-tensor C(i,j,k).

Definition at line 23 of file Stokhos_Dense3Tensor.hpp.

Constructor & Destructor Documentation

template<typename ordinal_type, typename value_type >
Stokhos::Dense3Tensor< ordinal_type, value_type >::Dense3Tensor ( ordinal_type  sz)

Constructor.

Definition at line 12 of file Stokhos_Dense3TensorImp.hpp.

template<typename ordinal_type , typename value_type >
Stokhos::Dense3Tensor< ordinal_type, value_type >::~Dense3Tensor ( )

Destructor.

Definition at line 20 of file Stokhos_Dense3TensorImp.hpp.

template<typename ordinal_type, typename value_type>
Stokhos::Dense3Tensor< ordinal_type, value_type >::Dense3Tensor ( const Dense3Tensor< ordinal_type, value_type > &  )
private

Member Function Documentation

template<typename ordinal_type , typename value_type >
ordinal_type Stokhos::Dense3Tensor< ordinal_type, value_type >::size ( ) const

Return size.

Definition at line 27 of file Stokhos_Dense3TensorImp.hpp.

template<typename ordinal_type, typename value_type >
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 35 of file Stokhos_Dense3TensorImp.hpp.

template<typename ordinal_type, typename value_type >
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 43 of file Stokhos_Dense3TensorImp.hpp.

template<typename ordinal_type, typename value_type >
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 51 of file Stokhos_Dense3TensorImp.hpp.

template<typename ordinal_type, typename value_type>
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 59 of file Stokhos_Dense3TensorImp.hpp.

template<typename ordinal_type , typename value_type >
void Stokhos::Dense3Tensor< ordinal_type, value_type >::print ( std::ostream &  os) const

Print tensor.

Definition at line 70 of file Stokhos_Dense3TensorImp.hpp.

template<typename ordinal_type, typename value_type>
Dense3Tensor& Stokhos::Dense3Tensor< ordinal_type, value_type >::operator= ( const Dense3Tensor< ordinal_type, value_type > &  b)
private

Member Data Documentation

template<typename ordinal_type, typename value_type>
ordinal_type Stokhos::Dense3Tensor< ordinal_type, value_type >::l
protected

Size of each dimension.

Definition at line 63 of file Stokhos_Dense3Tensor.hpp.

template<typename ordinal_type, typename value_type>
Teuchos::Array<value_type> Stokhos::Dense3Tensor< ordinal_type, value_type >::Cijk_values
protected

Dense tensor array.

Definition at line 66 of file Stokhos_Dense3Tensor.hpp.


The documentation for this class was generated from the following files: