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) {
721 for (
uint i=i_begin; i<i_begin+
size_; ++i)
732 Type * comp_data = this->
operator()(i_row, i_col);
733 Type * comp_data_b = B(i_row_b, i_col_b);
737 comp_data[i] += comp_data_b[i];
776 inline unsigned int size()
const {
783 template<
unsigned long long int nr,
unsigned long long int nc = 1>
792 template<
unsigned long long int nr>
828 template<u
int nr, u
int nc = 1>
883 return data_[mat_index];
935 template <u
int N, u
int M>
#define ASSERT_LT(a, b)
Definition of comparative assert macro (Less Than) only for debug mode.
#define ASSERT_EQ(a, b)
Definition of comparative assert macro (EQual) only for debug mode.
#define ASSERT_LE(a, b)
Definition of comparative assert macro (Less or Equal) only for debug mode.
uint reserved_
Reserved size of Armor::Array.
ArrayMatSet & operator=(const ArmaMat< Type, nr, nc > &arma_x)
void copy(const Type *other_ptr)
ArrayMatSet(Type *ptr, uint n_rows, uint n_cols, uint reserved)
ArrayMatSet & operator=(const ArmaVec< Type, nr > &arma_x)
ArrayMatSet & operator=(const Type &arma_x)
arma::mat arma_mat(uint i) const
Array & add_comp(uint i_row, uint i_col, uint i_row_b, uint i_col_b, const Array &B)
Array(uint nr, uint nc=1, uint size=0)
Array & operator=(const Array &other)
Array(const Array &other)
Type * operator()(uint i_row, uint i_col) const
void append(const ArmaMat< Type, nr, nc > &item)
void append(const ArmaVec< Type, nr > &item)
ArrayMatSet set(uint index)
arma::vec arma_vec(uint i) const
Type scalar(uint mat_index) const
ArmaVec< Type, nr > vec(uint mat_index) const
ArmaMat< Type, nr, nc > mat(uint mat_index) const
unsigned int size() const
Array & multiply_comp(uint i_row, uint i_col, Type multi)
typename arma::Mat< Type >::template fixed< nr, nc > ArmaMat
ArmaMat< double, N, M > mat
typename arma::Col< Type >::template fixed< nr > ArmaVec