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

Sparse product tensor with replicated entries to provide subsets with a given coordinate. More...

#include <Stokhos_LinearSparse3Tensor.hpp>

Public Types

typedef ExecutionSpace execution_space
 
typedef execution_space::size_type size_type
 
typedef ValueType value_type
 

Public Member Functions

 ~LinearSparse3Tensor ()
 
 LinearSparse3Tensor ()
 
 LinearSparse3Tensor (const LinearSparse3Tensor &rhs)
 
LinearSparse3Tensoroperator= (const LinearSparse3Tensor &rhs)
 
KOKKOS_INLINE_FUNCTION size_type dimension () const
 Dimension of the tensor. More...
 
KOKKOS_INLINE_FUNCTION size_type aligned_dimension () const
 Dimension of the tensor. More...
 
KOKKOS_INLINE_FUNCTION size_type entry_count () const
 Number of sparse entries. More...
 
KOKKOS_INLINE_FUNCTION bool symmetric () const
 Is tensor built from symmetric PDFs. More...
 
KOKKOS_INLINE_FUNCTION const
value_type
value (const size_type entry) const
 Value for entry 'entry'. More...
 
KOKKOS_INLINE_FUNCTION size_type num_non_zeros () const
 Number of non-zero's. More...
 
KOKKOS_INLINE_FUNCTION size_type num_flops () const
 Number flop's per multiply-add. More...
 

Static Public Member Functions

template<typename OrdinalType >
static LinearSparse3Tensor create (const Stokhos::ProductBasis< OrdinalType, ValueType > &basis, const Stokhos::Sparse3Tensor< OrdinalType, ValueType > &Cijk, const Teuchos::ParameterList &params)
 

Static Public Attributes

static const int block_size = BlockSize
 

Private Types

typedef Kokkos::View
< value_type[],
execution_space
value_array_type
 

Private Attributes

value_array_type m_value
 
size_type m_dim
 
size_type m_aligned_dim
 
size_type m_nnz
 
size_type m_flops
 
bool m_symmetric
 

Detailed Description

template<typename ValueType, class ExecutionSpace, int BlockSize>
class Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >

Sparse product tensor with replicated entries to provide subsets with a given coordinate.

Definition at line 30 of file Stokhos_LinearSparse3Tensor.hpp.

Member Typedef Documentation

template<typename ValueType , class ExecutionSpace , int BlockSize>
typedef ExecutionSpace Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::execution_space

Definition at line 33 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
typedef execution_space::size_type Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::size_type

Definition at line 34 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
typedef ValueType Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::value_type

Definition at line 35 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
typedef Kokkos::View< value_type[], execution_space > Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::value_array_type
private

Definition at line 41 of file Stokhos_LinearSparse3Tensor.hpp.

Constructor & Destructor Documentation

template<typename ValueType , class ExecutionSpace , int BlockSize>
Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::~LinearSparse3Tensor ( )
inline

Definition at line 53 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::LinearSparse3Tensor ( )
inline

Definition at line 56 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::LinearSparse3Tensor ( const LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize > &  rhs)
inline

Definition at line 65 of file Stokhos_LinearSparse3Tensor.hpp.

Member Function Documentation

template<typename ValueType , class ExecutionSpace , int BlockSize>
LinearSparse3Tensor& Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::operator= ( const LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize > &  rhs)
inline

Definition at line 74 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
KOKKOS_INLINE_FUNCTION size_type Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::dimension ( ) const
inline

Dimension of the tensor.

Definition at line 87 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
KOKKOS_INLINE_FUNCTION size_type Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::aligned_dimension ( ) const
inline

Dimension of the tensor.

Definition at line 91 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
KOKKOS_INLINE_FUNCTION size_type Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::entry_count ( ) const
inline

Number of sparse entries.

Definition at line 95 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
KOKKOS_INLINE_FUNCTION bool Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::symmetric ( ) const
inline

Is tensor built from symmetric PDFs.

Definition at line 100 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
KOKKOS_INLINE_FUNCTION const value_type& Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::value ( const size_type  entry) const
inline

Value for entry 'entry'.

Definition at line 105 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
KOKKOS_INLINE_FUNCTION size_type Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::num_non_zeros ( ) const
inline

Number of non-zero's.

Definition at line 110 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
KOKKOS_INLINE_FUNCTION size_type Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::num_flops ( ) const
inline

Number flop's per multiply-add.

Definition at line 115 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
template<typename OrdinalType >
static LinearSparse3Tensor Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::create ( const Stokhos::ProductBasis< OrdinalType, ValueType > &  basis,
const Stokhos::Sparse3Tensor< OrdinalType, ValueType > &  Cijk,
const Teuchos::ParameterList params 
)
inlinestatic

Definition at line 120 of file Stokhos_LinearSparse3Tensor.hpp.

Member Data Documentation

template<typename ValueType , class ExecutionSpace , int BlockSize>
const int Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::block_size = BlockSize
static

Definition at line 37 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
value_array_type Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::m_value
private

Definition at line 43 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
size_type Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::m_dim
private

Definition at line 44 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
size_type Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::m_aligned_dim
private

Definition at line 45 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
size_type Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::m_nnz
private

Definition at line 46 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
size_type Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::m_flops
private

Definition at line 47 of file Stokhos_LinearSparse3Tensor.hpp.

template<typename ValueType , class ExecutionSpace , int BlockSize>
bool Stokhos::LinearSparse3Tensor< ValueType, ExecutionSpace, BlockSize >::m_symmetric
private

Definition at line 48 of file Stokhos_LinearSparse3Tensor.hpp.


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