44 #ifndef STOKHOS_DENSE3TENSOR_HPP
45 #define STOKHOS_DENSE3TENSOR_HPP
56 template <
typename ordinal_type,
typename value_type>
84 void print(std::ostream& os)
const;
104 template <
typename ordinal_type,
typename value_type>
117 #endif // STOKHOS_DENSE3TENSOR_HPP
void print(std::ostream &os) const
Print tensor.
ordinal_type size() const
Return size.
Dense3Tensor & operator=(const Dense3Tensor &b)
ordinal_type num_values(ordinal_type k) const
Return number of non-zero's in Cijk for a given k.
std::ostream & operator<<(std::ostream &os, const ProductContainer< coeff_type > &vec)
~Dense3Tensor()
Destructor.
Teuchos::Array< value_type > Cijk_values
Dense tensor array.
const value_type & operator()(ordinal_type i, ordinal_type j, ordinal_type k) const
Get value (i,j,k)
ordinal_type l
Size of each dimension.
Data structure storing a dense 3-tensor C(i,j,k).
Dense3Tensor(ordinal_type sz)
Constructor.
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.