Stokhos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Attributes | List of all members
Stokhos::CooProductTensor< ValueType, ExecutionSpace, false > Class Template Reference

Specialization of CooProductTensor for unpacked (i,j,k) More...

#include <Stokhos_CooProductTensor.hpp>

Public Types

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

Public Member Functions

 ~CooProductTensor ()
 
 CooProductTensor ()
 
 CooProductTensor (const CooProductTensor &rhs)
 
CooProductTensoroperator= (const CooProductTensor &rhs)
 
KOKKOS_INLINE_FUNCTION size_type dimension () const
 Dimension of the tensor.
 
KOKKOS_INLINE_FUNCTION size_type entry_count () const
 Number of sparse entries.
 
KOKKOS_INLINE_FUNCTION void coord (const size_type entry, size_type &i, size_type &j, size_type &k) const
 Get (i,j,k) coordinates of an entry.
 
KOKKOS_INLINE_FUNCTION const value_typevalue (const size_type entry) const
 Value of an entry.
 
KOKKOS_INLINE_FUNCTION size_type num_non_zeros () const
 Number of non-zero's.
 
KOKKOS_INLINE_FUNCTION size_type num_flops () const
 Number flop's per multiply-add.
 
void print (std::ostream &os) const
 

Static Public Member Functions

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

Private Types

typedef Kokkos::View< value_type[], execution_spacevec_type
 
typedef Kokkos::View< size_type[][3], execution_spacecoord_array_type
 
typedef Kokkos::View< value_type[], execution_spacevalue_array_type
 

Private Attributes

coord_array_type m_coord
 
value_array_type m_value
 
size_type m_dim
 
size_type m_flops
 

Detailed Description

template<typename ValueType, class ExecutionSpace>
class Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >

Specialization of CooProductTensor for unpacked (i,j,k)

Definition at line 282 of file Stokhos_CooProductTensor.hpp.

Member Typedef Documentation

◆ execution_space

template<typename ValueType , class ExecutionSpace >
typedef ExecutionSpace Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::execution_space

Definition at line 285 of file Stokhos_CooProductTensor.hpp.

◆ size_type

template<typename ValueType , class ExecutionSpace >
typedef execution_space::size_type Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::size_type

Definition at line 286 of file Stokhos_CooProductTensor.hpp.

◆ value_type

template<typename ValueType , class ExecutionSpace >
typedef ValueType Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::value_type

Definition at line 287 of file Stokhos_CooProductTensor.hpp.

◆ vec_type

template<typename ValueType , class ExecutionSpace >
typedef Kokkos::View< value_type[], execution_space > Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::vec_type
private

Definition at line 291 of file Stokhos_CooProductTensor.hpp.

◆ coord_array_type

template<typename ValueType , class ExecutionSpace >
typedef Kokkos::View< size_type[][3], execution_space > Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::coord_array_type
private

Definition at line 292 of file Stokhos_CooProductTensor.hpp.

◆ value_array_type

template<typename ValueType , class ExecutionSpace >
typedef Kokkos::View< value_type[], execution_space > Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::value_array_type
private

Definition at line 293 of file Stokhos_CooProductTensor.hpp.

Constructor & Destructor Documentation

◆ ~CooProductTensor()

template<typename ValueType , class ExecutionSpace >
Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::~CooProductTensor ( )
inline

Definition at line 303 of file Stokhos_CooProductTensor.hpp.

◆ CooProductTensor() [1/2]

template<typename ValueType , class ExecutionSpace >
Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::CooProductTensor ( )
inline

Definition at line 306 of file Stokhos_CooProductTensor.hpp.

◆ CooProductTensor() [2/2]

template<typename ValueType , class ExecutionSpace >
Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::CooProductTensor ( const CooProductTensor< ValueType, ExecutionSpace, false > & rhs)
inline

Definition at line 313 of file Stokhos_CooProductTensor.hpp.

Member Function Documentation

◆ operator=()

template<typename ValueType , class ExecutionSpace >
CooProductTensor & Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::operator= ( const CooProductTensor< ValueType, ExecutionSpace, false > & rhs)
inline

Definition at line 320 of file Stokhos_CooProductTensor.hpp.

◆ dimension()

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION size_type Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::dimension ( ) const
inline

Dimension of the tensor.

Definition at line 331 of file Stokhos_CooProductTensor.hpp.

◆ entry_count()

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION size_type Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::entry_count ( ) const
inline

Number of sparse entries.

Definition at line 335 of file Stokhos_CooProductTensor.hpp.

◆ coord()

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION void Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::coord ( const size_type entry,
size_type & i,
size_type & j,
size_type & k ) const
inline

Get (i,j,k) coordinates of an entry.

Definition at line 339 of file Stokhos_CooProductTensor.hpp.

◆ value()

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

Value of an entry.

Definition at line 348 of file Stokhos_CooProductTensor.hpp.

◆ num_non_zeros()

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION size_type Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::num_non_zeros ( ) const
inline

Number of non-zero's.

Definition at line 353 of file Stokhos_CooProductTensor.hpp.

◆ num_flops()

template<typename ValueType , class ExecutionSpace >
KOKKOS_INLINE_FUNCTION size_type Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::num_flops ( ) const
inline

Number flop's per multiply-add.

Definition at line 357 of file Stokhos_CooProductTensor.hpp.

◆ create()

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

Definition at line 361 of file Stokhos_CooProductTensor.hpp.

◆ print()

template<typename ValueType , class ExecutionSpace >
void Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::print ( std::ostream & os) const
inline

Definition at line 445 of file Stokhos_CooProductTensor.hpp.

Member Data Documentation

◆ m_coord

template<typename ValueType , class ExecutionSpace >
coord_array_type Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::m_coord
private

Definition at line 295 of file Stokhos_CooProductTensor.hpp.

◆ m_value

template<typename ValueType , class ExecutionSpace >
value_array_type Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::m_value
private

Definition at line 296 of file Stokhos_CooProductTensor.hpp.

◆ m_dim

template<typename ValueType , class ExecutionSpace >
size_type Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::m_dim
private

Definition at line 297 of file Stokhos_CooProductTensor.hpp.

◆ m_flops

template<typename ValueType , class ExecutionSpace >
size_type Stokhos::CooProductTensor< ValueType, ExecutionSpace, false >::m_flops
private

Definition at line 298 of file Stokhos_CooProductTensor.hpp.


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