#include <Stokhos_Sparse3Tensor.hpp>
Public Member Functions | |
| Sparse3Tensor (ordinal_type sz) | |
| Constructor. | |
| ~Sparse3Tensor () | |
| Destructor. | |
| ordinal_type | size () const |
| Return size. | |
| ordinal_type | num_values (ordinal_type k) const |
| Return number of n of non-zero's in C(:,:,k) for a given k. | |
| void | value (ordinal_type k, ordinal_type l, ordinal_type &i, ordinal_type &j, value_type &c) const |
| Get value C(i,j,k) for 0 <= l < n for a given k. | |
| void | add_term (ordinal_type i, ordinal_type j, ordinal_type k, const value_type &c) |
| Add new term for given (i,j,k). | |
| void | print (std::ostream &os) const |
| Print tensor. | |
| ordinal_type | num_j (ordinal_type k) const |
| ordinal_type | j_index (ordinal_type k, ordinal_type l) const |
| const Teuchos::Array< ordinal_type > & | Jindices (ordinal_type k) const |
| const Teuchos::Array< ordinal_type > & | Iindices (ordinal_type k, ordinal_type l) const |
| const Teuchos::Array< value_type > & | values (ordinal_type k, ordinal_type l) const |
Protected Attributes | |
|
Teuchos::Array< Teuchos::Array< ordinal_type > > | i_indices |
| i-indices in Cijk for each k | |
|
Teuchos::Array< Teuchos::Array< ordinal_type > > | j_indices |
| j-indices in Cijk for each k | |
|
Teuchos::Array< Teuchos::Array< value_type > > | Cijk_values |
| values in Cijk for each k | |
|
Teuchos::Array< Teuchos::Array< JValues > > | j_values |
| i-indices in Cijk for each k | |
|
Teuchos::Array< Teuchos::Array< ordinal_type > > | j_indices2 |
| j-indices in Cijk for each k | |
Classes | |
| struct | JValues |
1.4.7