29 ,
P_is_vec( (
P.get_n_rows() == 1) || (
P.get_n_cols() == 1) )
36 (
P_is_vec ==
false) && (
P.get_n_rows() !=
P.get_n_cols()),
37 "diagmat(): only vectors and square matrices are accepted" 97 ,
P_is_vec( (
P.n_rows == 1) || (
P.n_cols == 1) )
104 (
P_is_vec ==
false) && (
P.n_rows !=
P.n_cols),
105 "diagmat(): only vectors and square matrices are accepted" 120 template<
typename eT>
149 template<
typename eT>
178 template<
typename T1>
188 ,
P_is_vec( (
P.n_rows == 1) || (
P.n_cols == 1) )
196 (
P_is_vec ==
false) && (
P.n_rows !=
P.n_cols),
197 "diagmat(): only vectors and square matrices are accepted" 213 template<
typename eT>
223 : P_local ( (&X == &out) ? new
Mat<eT>(X) : 0 )
224 ,
P ( (&X == &out) ? (*P_local) : X )
225 ,
P_is_vec( (
P.n_rows == 1) || (
P.n_cols == 1) )
232 (
P_is_vec ==
false) && (
P.n_rows !=
P.n_cols),
233 "diagmat(): only vectors and square matrices are accepted" 258 template<
typename eT>
267 : P_local ( (&X == reinterpret_cast<const
Row<eT>*>(&out)) ? new
Row<eT>(X) : 0 )
268 ,
P ( (&X == reinterpret_cast<const
Row<eT>*>(&out)) ? (*P_local) : X )
300 template<
typename eT>
309 : P_local ( (&X == reinterpret_cast<const
Col<eT>*>(&out)) ? new
Col<eT>(X) : 0 )
310 ,
P ( (&X == reinterpret_cast<const
Col<eT>*>(&out)) ? (*P_local) : X )
arma_inline elem_type at(const uword row, const uword col) const
diagmat_proxy_check(const Col< eT > &X, const Mat< eT > &out)
const Row< eT > * P_local
diagmat_proxy(const Base< typename T1::elem_type, T1 > &X)
const Col< eT > * P_local
get_pod_type< elem_type >::result pod_type
arma_inline const Op< T1, op_min > min(const Base< typename T1::elem_type, T1 > &X, const uword dim=0)
Delayed 'minimum values' operation. The dimension, along which the minima are found, is set via 'dim'. For dim = 0, the minimum value of each column is found (i.e. searches by traversing across rows). For dim = 1, the minimum value of each row is found (i.e. searches by traversing across columns). The default is dim = 0.
arma_inline elem_type at(const uword row, const uword col) const
get_pod_type< elem_type >::result pod_type
diagmat_proxy_check(const Base< typename T1::elem_type, T1 > &X, const Mat< typename T1::elem_type > &out)
Class for column vectors (matrices with only one column)
diagmat_proxy(const Row< eT > &X)
arma_inline elem_type at(const uword row, const uword col) const
diagmat_proxy_check(const Mat< eT > &X, const Mat< eT > &out)
#define arma_ignore(variable)
arma_inline elem_type at(const uword row, const uword col) const
get_pod_type< elem_type >::result pod_type
arma_inline elem_type at(const uword row, const uword col) const
get_pod_type< elem_type >::result pod_type
Class for row vectors (matrices with only one row)
diagmat_proxy(const Col< eT > &X)
#define arma_extra_debug_sigprint
arma_inline elem_type operator[](const uword i) const
arma_inline elem_type at(const uword row, const uword col) const
arma_inline elem_type at(const uword row, const uword col) const
diagmat_proxy_check(const Row< eT > &X, const Mat< eT > &out)
get_pod_type< elem_type >::result pod_type
get_pod_type< elem_type >::result pod_type
arma_inline elem_type at(const uword row, const uword col) const
get_pod_type< elem_type >::result pod_type
diagmat_proxy(const Mat< eT > &X)
const Mat< eT > * P_local
get_pod_type< elem_type >::result pod_type