Functions | |
template<typename T1 > | |
const Op< T1, op_min > | min (const Base< typename T1::elem_type, T1 > &X, const u32 dim=0) |
Delayed 'minimum values' operation. The dimension, along which the minima are found, is set via 'dim'. For dim = 0, the maximum value of each column is found. For dim = 1, the maximum value of each row is found. The default is dim = 0. NOTE: This function works differently than in Matlab/Octave. | |
template<typename eT > | |
eT | min (const Row< eT > &A) |
Immediate 'find the minimum value in a row vector' operation. | |
template<typename eT > | |
eT | min (const Col< eT > &A) |
Immediate 'find the minimum value in a column vector'. | |
template<typename T1 > | |
T1::elem_type | min (const Op< T1, op_min > &in) |
Immediate 'find minimum value' operation, invoked, for example, by: min(min(A)). | |
template<typename T1 > | |
const Op< Op< T1, op_min > , op_min > | min (const Op< T1, op_min > &in, const u32 dim) |
template<typename eT > | |
eT | min (const subview_row< eT > &A) |
template<typename eT > | |
eT | min (const subview_col< eT > &A) |
template<typename eT > | |
eT | min (const diagview< eT > &A) |
template<typename eT > | |
eT | min (const Op< subview< eT >, op_min > &in) |
const Op<T1, op_min> min | ( | const Base< typename T1::elem_type, T1 > & | X, | |
const u32 | dim = 0 | |||
) | [inline] |
Delayed 'minimum values' operation. The dimension, along which the minima are found, is set via 'dim'. For dim = 0, the maximum value of each column is found. For dim = 1, the maximum value of each row is found. The default is dim = 0. NOTE: This function works differently than in Matlab/Octave.
Definition at line 30 of file fn_min.hpp.
References Base< elem_type, derived >::get_ref().
Referenced by Mat< eT >::diag(), Math< eT >::log_min(), auxlib::qr(), Row< eT >::set_size(), Col< eT >::set_size(), auxlib::svd(), Row< eT >::zeros(), and Col< eT >::zeros().
00031 { 00032 arma_extra_debug_sigprint(); 00033 00034 return Op<T1, op_min>(X.get_ref(), dim, 0); 00035 }
eT min | ( | const Row< eT > & | A | ) | [inline] |
Immediate 'find the minimum value in a row vector' operation.
Definition at line 42 of file fn_min.hpp.
References op_min::direct_min(), Mat< eT >::mem, and Mat< eT >::n_elem.
00043 { 00044 arma_extra_debug_sigprint(); 00045 00046 arma_debug_check( (A.n_elem == 0), "min(): given vector has no elements" ); 00047 00048 return op_min::direct_min(A.mem, A.n_elem); 00049 }
eT min | ( | const Col< eT > & | A | ) | [inline] |
Immediate 'find the minimum value in a column vector'.
Definition at line 57 of file fn_min.hpp.
References op_min::direct_min(), Mat< eT >::mem, and Mat< eT >::n_elem.
00058 { 00059 arma_extra_debug_sigprint(); 00060 00061 arma_debug_check( (A.n_elem == 0), "min(): given vector has no elements" ); 00062 00063 return op_min::direct_min(A.mem, A.n_elem); 00064 }
Immediate 'find minimum value' operation, invoked, for example, by: min(min(A)).
Definition at line 74 of file fn_min.hpp.
References op_min::direct_min(), Op< T1, op_type >::m, Mat< eT >::mem, and Mat< eT >::n_elem.
00075 { 00076 arma_extra_debug_sigprint(); 00077 arma_extra_debug_print("min(): two consecutive min() calls detected"); 00078 00079 typedef typename T1::elem_type eT; 00080 00081 const unwrap<T1> tmp1(in.m); 00082 const Mat<eT>& X = tmp1.M; 00083 00084 arma_debug_check( (X.n_elem == 0), "min(): given matrix has no elements" ); 00085 00086 return op_min::direct_min(X.mem, X.n_elem); 00087 }
const Op< Op<T1, op_min>, op_min> min | ( | const Op< T1, op_min > & | in, | |
const u32 | dim | |||
) | [inline] |
Definition at line 94 of file fn_min.hpp.
00095 { 00096 arma_extra_debug_sigprint(); 00097 00098 return Op< Op<T1, op_min>, op_min>(in, dim, 0); 00099 }
eT min | ( | const subview_row< eT > & | A | ) | [inline] |
Definition at line 106 of file fn_min.hpp.
References op_min::direct_min(), and subview< eT >::n_elem.
00107 { 00108 arma_extra_debug_sigprint(); 00109 00110 arma_debug_check( (A.n_elem == 0), "min(): given vector has no elements" ); 00111 00112 return op_min::direct_min(A); 00113 }
eT min | ( | const subview_col< eT > & | A | ) | [inline] |
Definition at line 120 of file fn_min.hpp.
References op_min::direct_min(), and subview< eT >::n_elem.
00121 { 00122 arma_extra_debug_sigprint(); 00123 00124 arma_debug_check( (A.n_elem == 0), "min(): given vector has no elements" ); 00125 00126 return op_min::direct_min(A); 00127 }
eT min | ( | const diagview< eT > & | A | ) | [inline] |
Definition at line 134 of file fn_min.hpp.
References op_min::direct_min(), and diagview< eT >::n_elem.
00135 { 00136 arma_extra_debug_sigprint(); 00137 00138 arma_debug_check( (A.n_elem == 0), "min(): given vector has no elements" ); 00139 00140 return op_min::direct_min(A); 00141 }
Definition at line 148 of file fn_min.hpp.
References op_min::direct_min(), and subview< eT >::n_elem.
00149 { 00150 arma_extra_debug_sigprint(); 00151 arma_extra_debug_print("max(): two consecutive max() calls detected"); 00152 00153 const subview<eT>& X = in.m; 00154 00155 arma_debug_check( (X.n_elem == 0), "max(): given matrix has no elements" ); 00156 00157 return op_min::direct_min(X); 00158 }