Flow123d
JS_before_hm-2198-g122e1f2e2
|
Go to the documentation of this file.
501 template <
class Type, u
int nr, u
int nc>
502 using ArmaMat =
typename arma::Mat<Type>::template fixed<nr, nc>;
504 template <
class Type, u
int nr>
505 using ArmaVec =
typename arma::Col<Type>::template fixed<nr>;
616 template<
long long unsigned int nr,
long long unsigned int nc>
621 copy<nr, nc>(arma_x.memptr());
625 template<
long long unsigned int nr>
630 copy<nr, 1>(arma_x.memptr());
644 template <u
int nr, u
int nc>
645 void copy(
const Type *other_ptr) {
646 for (
uint i = 0; i < nr * nc; ++i) {
728 inline unsigned int size()
const {
735 template<
unsigned long long int nr,
unsigned long long int nc = 1>
744 template<
unsigned long long int nr>
780 template<u
int nr, u
int nc = 1>
835 return data_[mat_index];
887 template <u
int N, u
int M>
void append(const ArmaVec< Type, nr > &item)
ArrayMatSet & operator=(const ArmaMat< Type, nr, nc > &arma_x)
arma::vec arma_vec(uint i) const
ArmaVec< Type, nr > vec(uint mat_index) const
uint reserved_
Reserved size of Armor::Array.
ArrayMatSet & operator=(const ArmaVec< Type, nr > &arma_x)
#define ASSERT_EQ_DBG(a, b)
Definition of comparative assert macro (EQual) only for debug mode.
Array(const Array &other)
ArmaMat< Type, nr, nc > mat(uint mat_index) const
Array(uint nr, uint nc=1, uint size=0)
ArmaMat< double, N, M > mat
Array & operator=(const Array &other)
arma::mat arma_mat(uint i) const
ArrayMatSet & operator=(const Type &arma_x)
#define ASSERT_EQ(a, b)
Definition of comparative assert macro (EQual)
ArrayMatSet set(uint index)
unsigned int size() const
void append(const ArmaMat< Type, nr, nc > &item)
#define ASSERT_LT_DBG(a, b)
Definition of comparative assert macro (Less Than) only for debug mode.
Type scalar(uint mat_index) const
#define ASSERT_LE_DBG(a, b)
Definition of comparative assert macro (Less or Equal) only for debug mode.
typename arma::Col< Type >::template fixed< nr > ArmaVec
typename arma::Mat< Type >::template fixed< nr, nc > ArmaMat
void copy(const Type *other_ptr)
ArrayMatSet(Type *ptr, uint n_rows, uint n_cols, uint reserved)