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>;
604 : ptr_(ptr), n_rows_(n_rows), n_cols_(n_cols) {}
615 template<
long long unsigned int nr,
long long unsigned int nc>
620 copy<nr, nc>(arma_x.memptr());
624 template<
long long unsigned int nr>
629 copy<nr, 1>(arma_x.memptr());
634 template <u
int nr, u
int nc>
635 void copy(
const Type *other_ptr) {
636 for (
uint i = 0; i < nr * nc; ++i) {
637 *(ptr_ + i) = *(other_ptr + i);
718 inline unsigned int size()
const {
725 template<
unsigned long long int nr,
unsigned long long int nc = 1>
730 set(
size_ - 1) = item;
734 template<
unsigned long long int nr>
770 template<u
int nr, u
int nc = 1>
863 template <u
int N, u
int M>
unsigned int size() const
#define ASSERT_EQ_DBG(a, b)
Definition of comparative assert macro (EQual) only for debug mode.
void append(const ArmaVec< Type, nr > &item)
void append(const ArmaMat< Type, nr, nc > &item)
ArrayMatSet & operator=(const ArmaMat< Type, nr, nc > &arma_x)
ArrayMatSet & operator=(const ArmaVec< Type, nr > &arma_x)
ArrayMatSet(Type *ptr, uint n_rows, uint n_cols)
ArmaVec< Type, nr > vec(uint mat_index) const
Array & operator=(const Array &other)
arma::vec arma_vec(uint i) const
ArmaMat< Type, nr, nc > mat(uint mat_index) const
Array(uint nr, uint nc=1, uint size=0)
ArmaMat< double, N, M > mat
Type scalar(uint mat_index) const
typename arma::Mat< Type >::template fixed< nr, nc > ArmaMat
#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
Array(const Array &other)
arma::mat arma_mat(uint i) const
void copy(const Type *other_ptr)
#define ASSERT_EQ(a, b)
Definition of comparative assert macro (EQual)
#define ASSERT_LT_DBG(a, b)
Definition of comparative assert macro (Less Than) only for debug mode.