Stokhos Package Browser (Single Doxygen Collection) Version of the Day
|
Specialization of CooProductTensor for packed (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) | |
CooProductTensor & | operator= (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_type & | value (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 ¶ms=Teuchos::ParameterList()) |
Static Public Attributes | |
static const size_type | max_index = 1 << bits |
Maximum index storable by packed approach. | |
Private Types | |
typedef Kokkos::View< value_type[], execution_space > | vec_type |
typedef Kokkos::View< size_type[], execution_space > | coord_array_type |
typedef Kokkos::View< value_type[], execution_space > | value_array_type |
Private Member Functions | |
KOKKOS_INLINE_FUNCTION void | unpack (size_type ijk, size_type &i, size_type &j, size_type &k) const |
Static Private Member Functions | |
static size_type | pack (const size_type i, const size_type j, const size_type k) |
Private Attributes | |
coord_array_type | m_coord |
value_array_type | m_value |
size_type | m_dim |
size_type | m_flops |
Static Private Attributes | |
static const size_type | bits = (sizeof(size_type)*8) / 3 |
static const size_type | mask = (1 << bits)-1 |
Specialization of CooProductTensor for packed (i,j,k)
Definition at line 73 of file Stokhos_CooProductTensor.hpp.
typedef ExecutionSpace Stokhos::CooProductTensor< ValueType, ExecutionSpace, true >::execution_space |
Definition at line 76 of file Stokhos_CooProductTensor.hpp.
typedef execution_space::size_type Stokhos::CooProductTensor< ValueType, ExecutionSpace, true >::size_type |
Definition at line 77 of file Stokhos_CooProductTensor.hpp.
typedef ValueType Stokhos::CooProductTensor< ValueType, ExecutionSpace, true >::value_type |
Definition at line 78 of file Stokhos_CooProductTensor.hpp.
|
private |
Definition at line 88 of file Stokhos_CooProductTensor.hpp.
|
private |
Definition at line 89 of file Stokhos_CooProductTensor.hpp.
|
private |
Definition at line 90 of file Stokhos_CooProductTensor.hpp.
|
inline |
Definition at line 120 of file Stokhos_CooProductTensor.hpp.
|
inline |
Definition at line 123 of file Stokhos_CooProductTensor.hpp.
|
inline |
Definition at line 130 of file Stokhos_CooProductTensor.hpp.
|
inlinestaticprivate |
Definition at line 99 of file Stokhos_CooProductTensor.hpp.
|
inlineprivate |
Definition at line 108 of file Stokhos_CooProductTensor.hpp.
|
inline |
Definition at line 137 of file Stokhos_CooProductTensor.hpp.
|
inline |
Dimension of the tensor.
Definition at line 148 of file Stokhos_CooProductTensor.hpp.
|
inline |
Number of sparse entries.
Definition at line 152 of file Stokhos_CooProductTensor.hpp.
|
inline |
Get (i,j,k) coordinates of an entry.
Definition at line 156 of file Stokhos_CooProductTensor.hpp.
|
inline |
Value of an entry.
Definition at line 163 of file Stokhos_CooProductTensor.hpp.
|
inline |
Number of non-zero's.
Definition at line 168 of file Stokhos_CooProductTensor.hpp.
|
inline |
Number flop's per multiply-add.
Definition at line 172 of file Stokhos_CooProductTensor.hpp.
|
inlinestatic |
Definition at line 176 of file Stokhos_CooProductTensor.hpp.
|
inline |
Definition at line 255 of file Stokhos_CooProductTensor.hpp.
|
staticprivate |
Definition at line 83 of file Stokhos_CooProductTensor.hpp.
|
staticprivate |
Definition at line 86 of file Stokhos_CooProductTensor.hpp.
|
private |
Definition at line 92 of file Stokhos_CooProductTensor.hpp.
|
private |
Definition at line 93 of file Stokhos_CooProductTensor.hpp.
|
private |
Definition at line 94 of file Stokhos_CooProductTensor.hpp.
|
private |
Definition at line 95 of file Stokhos_CooProductTensor.hpp.
|
static |
Maximum index storable by packed approach.
Definition at line 117 of file Stokhos_CooProductTensor.hpp.