45 for(
uword in_row = 0; in_row < A_n_rows; ++in_row)
47 const uword out_col = in_row;
49 for(
uword in_col = 0; in_col < A_n_cols; ++in_col)
51 const uword out_row = in_col;
94 for(
uword col=0; col<n_cols; ++col)
96 eT* coldata = out.
colptr(col);
100 for(
uword row=(col+1); row<n_rows; ++row)
105 out.
at(col,row) = val1;
123 template<
typename T1>
130 typedef typename T1::elem_type eT;
140 template<
typename T1>
147 typedef typename T1::elem_type eT;
152 const bool upper = in.m.aux_uword_a;
159 template<
typename T1>
166 typedef typename T1::elem_type eT;
arma_inline arma_warn_unused eT * memptr()
returns a pointer to array of eTs used by the matrix
void set_size(const uword in_elem)
change the matrix to have user specified dimensions (data is not preserved)
static arma_hot void inplace_mul(eT *dest, const eT *src, const uword n_elem)
static arma_inline void apply(Mat< eT > &out, const Mat< eT > &A, const typename arma_not_cx< eT >::result *junk=0)
static void apply(Mat< eT > &out, const Mat< eT > &A)
const uword n_cols
number of columns in the matrix (read-only)
arma_inline const T1 & conj(const Base< typename T1::pod_type, T1 > &A)
const uword n_elem
number of elements in the matrix (read-only)
const uword n_rows
number of rows in the matrix (read-only)
#define arma_extra_debug_print
arma_aligned elem_type aux
storage of auxiliary data, user defined format
arma_aligned const T1 & m
storage of reference to the operand (eg. a matrix)
arma_inline arma_warn_unused eT * colptr(const uword in_col)
returns a pointer to array of eTs for a specified column; no bounds check
arma_inline arma_warn_unused eT & at(const uword i)
linear element accessor (treats the matrix as a vector); no bounds check.
#define arma_ignore(variable)
static arma_inline void apply_noalias(Mat< eT > &out, const Mat< eT > &A, const typename arma_not_cx< eT >::result *junk=0)
'hermitian transpose' operation
#define arma_extra_debug_sigprint
static void apply_htrans(Mat< eT > &out, const Mat< eT > &A, const bool upper, const typename arma_not_cx< eT >::result *junk=0)
static void apply(Mat< typename T1::elem_type > &out, const Op< T1, op_htrans2 > &in)
static void apply_noalias(Mat< eT > &out, const Mat< eT > &A)
Immediate transpose of a dense matrix.