Flow123d
3.9.0-c2ae2d0a8
|
#include <armor.hh>
Classes | |
class | ArrayMatSet |
Public Member Functions | |
Array (uint nr, uint nc=1, uint size=0) | |
Array (const Array &other) | |
~Array () | |
Array & | operator= (const Array &other) |
void | reinit (uint size) |
void | resize (uint size) |
uint | n_rows () const |
uint | n_cols () const |
unsigned int | size () const |
template<unsigned long long int nr, unsigned long long int nc = 1> | |
void | append (const ArmaMat< Type, nr, nc > &item) |
template<unsigned long long int nr> | |
void | append (const ArmaVec< Type, nr > &item) |
template<uint nr, uint nc = 1> | |
ArmaMat< Type, nr, nc > | mat (uint mat_index) const |
template<uint nr> | |
ArmaVec< Type, nr > | vec (uint mat_index) const |
Type | scalar (uint mat_index) const |
ArrayMatSet | set (uint index) |
arma::mat | arma_mat (uint i) const |
arma::vec | arma_vec (uint i) const |
Public Attributes | |
Type * | data_ |
Private Member Functions | |
uint | space_ () |
Private Attributes | |
uint | n_rows_ |
uint | n_cols_ |
uint | size_ |
uint | reserved_ |
Array of Armor::Mat with given shape. Provides contiguous storage for the data and access to the array elements. The shape of the matrices is specified at run time, so the class Array is independent of additional template parameters. However, to access the array elements, one must use the templated method get().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Return matrix at given position in array. The returned object is a Armor::Mat pointing to the respective data_ block in the Array's storage. One can assign to the Armor::Mat which performs postponed evaluation and storing the result to the array.
i | Index of the matrix. TODO: Should be renamed to item(), but we have compilation problem in Field::loc_point_value |
Definition at line 781 of file armor.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
Type* Armor::Array< Type >::data_ |
|
private |
|
private |
|
private |
|
private |