53 const T* s_mem = s.
memptr();
56 if( (tol == T(0)) && (s_n_elem > 0) )
66 for(
uword i = 0; i < s_n_elem; ++i)
82 for(
uword i=0; i < s_n_elem; ++i)
84 const T val = s_mem[i];
88 s2_mem[count2] = T(1) / val;
105 out.
zeros(n_cols, n_rows);
111 template<
typename T1>
118 typedef typename T1::elem_type eT;
static arma_inline const eT & tmp_real(const eT &X)
internal function to obtain the real part of either a plain number or a complex number ...
arma_inline arma_warn_unused eT * memptr()
returns a pointer to array of eTs used by the matrix
static void direct_pinv(Mat< eT > &out, const Mat< eT > &A, const eT in_tol)
const uword n_cols
number of columns in the matrix (read-only)
const uword n_elem
number of elements in the matrix (read-only)
arma_inline const Op< T1, op_max > max(const Base< typename T1::elem_type, T1 > &X, const uword dim=0)
Delayed 'maximum values' operation. The dimension, along which the maxima are found, is set via 'dim'. For dim = 0, the maximum value of each column is found (i.e. searches by traversing across rows). For dim = 1, the maximum value of each row is found (i.e. searches by traversing across columns). The default is dim = 0.
const uword n_rows
number of rows in the matrix (read-only)
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)
Class for column vectors (matrices with only one column)
arma_inline const Op< T1, op_htrans > trans(const Base< typename T1::elem_type, T1 > &X)
static void apply(Mat< typename T1::elem_type > &out, const Op< T1, op_pinv > &in)
#define arma_extra_debug_sigprint
void arma_cold arma_bad(const T1 &x, const bool hurl=true)
print a message to get_stream_err2() and/or throw a run-time error exception
arma_inline const Op< T1, op_diagmat > diagmat(const Base< typename T1::elem_type, T1 > &X)
interpret a matrix or a vector as a diagonal matrix (i.e. off-diagonal entries are zero) ...
static eT direct_max(const eT *const X, const uword N)
arma_inline subview< eT > cols(const uword in_col1, const uword in_col2)
creation of subview (submatrix comprised of specified column vectors)
static arma_inline arma_integral_only< eT >::result direct_eps(const eT)
static bool svd_econ(Mat< eT > &U, Col< eT > &S, Mat< eT > &V, const Base< eT, T1 > &X, const char mode)