54 typedef typename std::complex<T>
eT;
71 typedef typename std::complex<T>
eT;
100 std::sort(&X[0], &X[n_elem], comparator);
106 template<
typename eT>
115 for(i=0, j=1; j<N; i+=2, j+=2)
129 template<
typename eT>
138 for(i=0, j=1; j<N; i+=2, j+=2)
152 template<
typename T1>
159 typedef typename T1::elem_type eT;
167 arma_debug_check( (sort_type > 1),
"sort(): incorrect usage. sort_type must be 0 or 1");
168 arma_debug_check( (dim > 1),
"sort(): incorrect usage. dim must be 0 or 1" );
187 for(
uword col=0; col < n_cols; ++col)
213 for(
uword row=0; row < n_rows; ++row)
arma_inline arma_warn_unused eT * memptr()
returns a pointer to array of eTs used by the matrix
A lightweight array for POD types. If the amount of memory requested is small, the stack is used...
arma_warn_unused bool is_finite() const
returns true if all of the elements are finite
const uword n_cols
number of columns in the matrix (read-only)
arma_aligned uword aux_uword_b
storage of auxiliary data, uword format
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 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.
void copy_size(const Mat< eT2 > &m)
change the matrix (without preserving data) to have the same dimensions as the given matrix ...
arma_inline const eOp< T1, eop_abs > abs(const Base< typename T1::elem_type, T1 > &X, const typename arma_not_cx< typename T1::elem_type >::result *junk=0)
#define arma_extra_debug_sigprint
static void apply(Mat< typename T1::elem_type > &out, const Op< T1, op_sort > &in)
arma_inline const Op< T1, op_sort > sort(const Base< typename T1::elem_type, T1 > &X, const uword sort_type=0, const uword dim=0)
arma_inline eT * memptr()
static void direct_sort(eT *X, const uword N, const uword sort_type=0)
static void copy_row(eT *X, const Mat< eT > &A, const uword row)
arma_aligned uword aux_uword_a
storage of auxiliary data, uword format
arma_inline bool operator()(eT a, eT b) const