Col

Classes

class  Col< eT >
 Class for column vectors (matrices with only column). More...

Functions

 Col::Col ()
 construct an empty column vector
 Col::Col (const u32 n_elem)
 construct a column vector with the specified number of n_elem
 Col::Col (const u32 in_rows, const u32 in_cols)
 Col::Col (const char *text)
 construct a column vector from specified text
const ColCol::operator= (const char *text)
 construct a column vector from specified text
 Col::Col (const std::string &text)
 construct a column vector from specified text
const ColCol::operator= (const std::string &text)
 construct a column vector from specified text
 Col::Col (const Col &X)
 construct a column vector from a given column vector
const ColCol::operator= (const Col &X)
 construct a column vector from a given column vector
 Col::Col (const Mat< eT > &X)
 construct a column vector from a given matrix; the matrix must have exactly one column
const ColCol::operator= (const Mat< eT > &X)
 construct a column vector from a given matrix; the matrix must have exactly one column
const ColCol::operator*= (const Mat< eT > &X)
 Col::Col (eT *aux_mem, const u32 aux_n_rows, const u32 aux_n_cols, const bool copy_aux_mem=true)
 construct a column vector from a given auxiliary array of eTs
 Col::Col (const eT *aux_mem, const u32 aux_n_rows, const u32 aux_n_cols)
 construct a column vector from a given auxiliary array of eTs
 Col::Col (eT *aux_mem, const u32 aux_length, const bool copy_aux_mem=true)
 construct a column vector from a given auxiliary array of eTs
 Col::Col (const eT *aux_mem, const u32 aux_length)
 construct a column vector from a given auxiliary array of eTs
template<typename T1 , typename T2 >
 Col::Col (const Base< pod_type, T1 > &A, const Base< pod_type, T2 > &B)
 Col::Col (const subview< eT > &X)
 construct a column vector from given a submatrix; the submatrix must have exactly one column
const ColCol::operator= (const subview< eT > &X)
 construct a column vector from given a submatrix; the submatrix must have exactly one column
const ColCol::operator*= (const subview< eT > &X)
 in-place matrix mutiplication (using a submatrix on the right-hand-side)
 Col::Col (const subview_cube< eT > &X)
 construct a column vector from given a subcube; the subcube must have exactly one column
const ColCol::operator= (const subview_cube< eT > &X)
 construct a column vector from given a subcube; the subcube must have exactly one column
const ColCol::operator*= (const subview_cube< eT > &X)
 in-place matrix mutiplication (using a single-slice subcube on the right-hand-side)
 Col::Col (const diagview< eT > &X)
 construct a column vector from given a diagview
const ColCol::operator= (const diagview< eT > &X)
 construct a column vector from given a diagview
const ColCol::operator*= (const diagview< eT > &X)
arma_inline eT & Col::row (const u32 row_num)
 creation of subview (row vector)
arma_inline eT Col::row (const u32 row_num) const
 creation of subview (row vector)
arma_inline subview_col< eT > Col::rows (const u32 in_row1, const u32 in_row2)
 creation of subview (submatrix comprised of specified row vectors)
arma_inline const subview_col< eT > Col::rows (const u32 in_row1, const u32 in_row2) const
 creation of subview (submatrix comprised of specified row vectors)
template<typename T1 , typename op_type >
 Col::Col (const Op< T1, op_type > &X)
 construct a column vector from Op, i.e. run the previously delayed operations; the result of the operations must have exactly one column
template<typename T1 , typename op_type >
const ColCol::operator= (const Op< T1, op_type > &X)
 construct a column vector from Op, i.e. run the previously delayed operations; the result of the operations must have exactly one column
template<typename T1 , typename op_type >
const ColCol::operator*= (const Op< T1, op_type > &X)
 in-place matrix multiplication, with the right-hand-side operand having delayed operations
template<typename T1 , typename T2 , typename glue_type >
 Col::Col (const Glue< T1, T2, glue_type > &X)
 construct a column vector from Glue, i.e. run the previously delayed operations; the result of the operations must have exactly one column
template<typename T1 , typename T2 , typename glue_type >
const ColCol::operator= (const Glue< T1, T2, glue_type > &X)
 construct a column vector from Glue, i.e. run the previously delayed operations; the result of the operations must have exactly one column
template<typename T1 , typename T2 , typename glue_type >
const ColCol::operator*= (const Glue< T1, T2, glue_type > &X)
 in-place matrix multiplications, with the right-hand-side operands having delayed operations
void Col::set_size (const u32 n_elem)
 change the number of rows
void Col::set_size (const u32 n_rows, const u32 n_cols)
 change the number of rows (this function re-implements mat::set_size() in order to check the number of columns)
template<typename eT2 >
void Col::copy_size (const Mat< eT2 > &m)
 change the number of rows (this function re-implements mat::copy_size() in order to check the number of columns)
void Col::zeros ()
void Col::zeros (const u32 n_elem)
void Col::zeros (const u32 n_rows, const u32 n_cols)
void Col::ones ()
void Col::ones (const u32 n_elem)
void Col::ones (const u32 n_rows, const u32 n_cols)
void Col::load (const std::string name, const file_type type=auto_detect)
 load a matrix from a file

Function Documentation

template<typename eT >
Col< eT >::Col (  )  [inline, inherited]

construct an empty column vector

Definition at line 23 of file Col_meat.hpp.

00024   : Mat<eT>()
00025   {
00026   arma_extra_debug_sigprint();
00027   }

template<typename eT >
Col< eT >::Col ( const u32  n_elem  )  [inline, explicit, inherited]

construct a column vector with the specified number of n_elem

Definition at line 34 of file Col_meat.hpp.

00035   : Mat<eT>(in_n_elem, 1)
00036   {
00037   arma_extra_debug_sigprint();
00038   }

template<typename eT >
Col< eT >::Col ( const u32  in_rows,
const u32  in_cols 
) [inline, inherited]

Definition at line 44 of file Col_meat.hpp.

00045   : Mat<eT>(in_n_rows, in_n_cols)
00046   {
00047   arma_extra_debug_sigprint();
00048   
00049   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00050   }

template<typename eT >
Col< eT >::Col ( const char *  text  )  [inline, inherited]

construct a column vector from specified text

Definition at line 57 of file Col_meat.hpp.

References access::rw().

00058   : Mat<eT>(text)
00059   {
00060   arma_extra_debug_sigprint();
00061   
00062   std::swap( access::rw(Mat<eT>::n_rows), access::rw(Mat<eT>::n_cols) );
00063   
00064   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00065   }

template<typename eT >
const Col< eT > & Col< eT >::operator= ( const char *  text  )  [inline, inherited]

construct a column vector from specified text

Reimplemented from Mat< eT >.

Definition at line 73 of file Col_meat.hpp.

References access::rw().

Referenced by Col< eT >::operator=().

00074   {
00075   arma_extra_debug_sigprint();
00076   
00077   Mat<eT>::operator=(text);
00078   
00079   std::swap( access::rw(Mat<eT>::n_rows), access::rw(Mat<eT>::n_cols) );
00080   
00081   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00082   
00083   return *this;
00084   }

template<typename eT >
Col< eT >::Col ( const std::string &  text  )  [inline, inherited]

construct a column vector from specified text

Definition at line 91 of file Col_meat.hpp.

References access::rw().

00092   : Mat<eT>(text)
00093   {
00094   arma_extra_debug_sigprint();
00095   
00096   std::swap( access::rw(Mat<eT>::n_rows), access::rw(Mat<eT>::n_cols) );
00097   
00098   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00099   }

template<typename eT >
const Col< eT > & Col< eT >::operator= ( const std::string &  text  )  [inline, inherited]

construct a column vector from specified text

Reimplemented from Mat< eT >.

Definition at line 107 of file Col_meat.hpp.

References Col< eT >::operator=(), and access::rw().

00108   {
00109   arma_extra_debug_sigprint();
00110   
00111   Mat<eT>::operator=(text);
00112   
00113   std::swap( access::rw(Mat<eT>::n_rows), access::rw(Mat<eT>::n_cols) );
00114   
00115   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00116   
00117   return *this;
00118   }

template<typename eT >
Col< eT >::Col ( const Col< eT > &  X  )  [inline, inherited]

construct a column vector from a given column vector

Definition at line 125 of file Col_meat.hpp.

00126   : Mat<eT>(X)
00127   {
00128   arma_extra_debug_sigprint();
00129   }

template<typename eT >
const Col< eT > & Col< eT >::operator= ( const Col< eT > &  X  )  [inline, inherited]

construct a column vector from a given column vector

Reimplemented from Mat< eT >.

Definition at line 137 of file Col_meat.hpp.

References Col< eT >::operator=().

00138   {
00139   arma_extra_debug_sigprint();
00140   
00141   Mat<eT>::operator=(X);
00142   
00143   return *this;
00144   }

template<typename eT >
Col< eT >::Col ( const Mat< eT > &  X  )  [inline, inherited]

construct a column vector from a given matrix; the matrix must have exactly one column

Definition at line 151 of file Col_meat.hpp.

00152   : Mat<eT>(X)
00153   {
00154   arma_extra_debug_sigprint();
00155   
00156   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00157   }

template<typename eT >
const Col< eT > & Col< eT >::operator= ( const Mat< eT > &  X  )  [inline, inherited]

construct a column vector from a given matrix; the matrix must have exactly one column

Definition at line 165 of file Col_meat.hpp.

References Col< eT >::operator=().

00166   {
00167   arma_extra_debug_sigprint();
00168   
00169   Mat<eT>::operator=(X);
00170   
00171   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00172   
00173   return *this;
00174   }

template<typename eT >
const Col< eT > & Col< eT >::operator*= ( const Mat< eT > &  X  )  [inline, inherited]

Definition at line 181 of file Col_meat.hpp.

Referenced by Col< eT >::operator*=().

00182   {
00183   arma_extra_debug_sigprint();
00184   
00185   Mat<eT>::operator*=(X);
00186   
00187   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00188   
00189   return *this;
00190   }

template<typename eT >
Col< eT >::Col ( eT *  aux_mem,
const u32  aux_n_rows,
const u32  aux_n_cols,
const bool  copy_aux_mem = true 
) [inline, inherited]

construct a column vector from a given auxiliary array of eTs

Definition at line 197 of file Col_meat.hpp.

00198   : Mat<eT>(aux_mem, aux_n_rows, aux_n_cols, copy_aux_mem)
00199   {
00200   arma_extra_debug_sigprint();
00201   
00202   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00203   }

template<typename eT >
Col< eT >::Col ( const eT *  aux_mem,
const u32  aux_n_rows,
const u32  aux_n_cols 
) [inline, inherited]

construct a column vector from a given auxiliary array of eTs

Definition at line 210 of file Col_meat.hpp.

00211   : Mat<eT>(aux_mem, aux_n_rows, aux_n_cols)
00212   {
00213   arma_extra_debug_sigprint();
00214   
00215   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00216   }

template<typename eT >
Col< eT >::Col ( eT *  aux_mem,
const u32  aux_length,
const bool  copy_aux_mem = true 
) [inline, inherited]

construct a column vector from a given auxiliary array of eTs

Definition at line 223 of file Col_meat.hpp.

00224   : Mat<eT>(aux_mem, aux_length, 1, copy_aux_mem)
00225   {
00226   arma_extra_debug_sigprint();
00227   
00228 //   set_size(aux_length, 1);
00229 // 
00230 //   arma_check( (Mat<eT>::n_elem != aux_length), "Col::Col(): don't know how to handle the given array" );
00231 // 
00232 //   syslib::copy_elem( Mat<eT>::memptr(), aux_mem, Mat<eT>::n_elem );
00233   }

template<typename eT >
Col< eT >::Col ( const eT *  aux_mem,
const u32  aux_length 
) [inline, inherited]

construct a column vector from a given auxiliary array of eTs

Definition at line 240 of file Col_meat.hpp.

00241   : Mat<eT>(aux_mem, aux_length, 1)
00242   {
00243   arma_extra_debug_sigprint();
00244   
00245 //   set_size(aux_length, 1);
00246 // 
00247 //   arma_check( (Mat<eT>::n_elem != aux_length), "Col::Col(): don't know how to handle the given array" );
00248 // 
00249 //   syslib::copy_elem( Mat<eT>::memptr(), aux_mem, Mat<eT>::n_elem );
00250   }

template<typename eT >
template<typename T1 , typename T2 >
Col< eT >::Col ( const Base< pod_type, T1 > &  A,
const Base< pod_type, T2 > &  B 
) [inline, explicit, inherited]

Definition at line 258 of file Col_meat.hpp.

00262   : Mat<eT>(A,B)
00263   {
00264   arma_extra_debug_sigprint();
00265   
00266   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00267   }

template<typename eT >
Col< eT >::Col ( const subview< eT > &  X  )  [inline, inherited]

construct a column vector from given a submatrix; the submatrix must have exactly one column

Definition at line 274 of file Col_meat.hpp.

00275   : Mat<eT>(X)
00276   {
00277   arma_extra_debug_sigprint();
00278   
00279   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00280   }

template<typename eT >
const Col< eT > & Col< eT >::operator= ( const subview< eT > &  X  )  [inline, inherited]

construct a column vector from given a submatrix; the submatrix must have exactly one column

Reimplemented from Mat< eT >.

Definition at line 288 of file Col_meat.hpp.

References Col< eT >::operator=().

00289   {
00290   arma_extra_debug_sigprint();
00291   
00292   Mat<eT>::operator=(X);
00293   
00294   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00295   
00296   return *this;
00297   }

template<typename eT >
const Col< eT > & Col< eT >::operator*= ( const subview< eT > &  X  )  [inline, inherited]

in-place matrix mutiplication (using a submatrix on the right-hand-side)

Reimplemented from Mat< eT >.

Definition at line 304 of file Col_meat.hpp.

References Col< eT >::operator*=().

00305   {
00306   arma_extra_debug_sigprint();
00307   
00308   Mat<eT>::operator*=(X);
00309   
00310   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00311   
00312   return *this;
00313   }

template<typename eT >
Col< eT >::Col ( const subview_cube< eT > &  X  )  [inline, inherited]

construct a column vector from given a subcube; the subcube must have exactly one column

Definition at line 320 of file Col_meat.hpp.

00321   : Mat<eT>(X)
00322   {
00323   arma_extra_debug_sigprint();
00324   
00325   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00326   }

template<typename eT >
const Col< eT > & Col< eT >::operator= ( const subview_cube< eT > &  X  )  [inline, inherited]

construct a column vector from given a subcube; the subcube must have exactly one column

Reimplemented from Mat< eT >.

Definition at line 334 of file Col_meat.hpp.

References Col< eT >::operator=().

00335   {
00336   arma_extra_debug_sigprint();
00337   
00338   Mat<eT>::operator=(X);
00339   
00340   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00341   
00342   return *this;
00343   }

template<typename eT >
const Col< eT > & Col< eT >::operator*= ( const subview_cube< eT > &  X  )  [inline, inherited]

in-place matrix mutiplication (using a single-slice subcube on the right-hand-side)

Reimplemented from Mat< eT >.

Definition at line 350 of file Col_meat.hpp.

References Col< eT >::operator*=().

00351   {
00352   arma_extra_debug_sigprint();
00353   
00354   Mat<eT>::operator*=(X);
00355   
00356   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00357   
00358   return *this;
00359   }

template<typename eT >
Col< eT >::Col ( const diagview< eT > &  X  )  [inline, inherited]

construct a column vector from given a diagview

Definition at line 366 of file Col_meat.hpp.

00367   : Mat<eT>(X)
00368   {
00369   arma_extra_debug_sigprint();
00370   
00371   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00372   }

template<typename eT >
const Col< eT > & Col< eT >::operator= ( const diagview< eT > &  X  )  [inline, inherited]

construct a column vector from given a diagview

Reimplemented from Mat< eT >.

Definition at line 380 of file Col_meat.hpp.

References Col< eT >::operator=().

00381   {
00382   arma_extra_debug_sigprint();
00383   
00384   Mat<eT>::operator=(X);
00385   
00386   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00387   
00388   return *this;
00389   }

template<typename eT >
const Col< eT > & Col< eT >::operator*= ( const diagview< eT > &  X  )  [inline, inherited]

Definition at line 396 of file Col_meat.hpp.

References Col< eT >::operator*=().

00397   {
00398   arma_extra_debug_sigprint();
00399   
00400   Mat<eT>::operator*=(X);
00401   
00402   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00403   
00404   return *this;
00405   }

template<typename eT >
arma_inline eT & Col< eT >::row ( const u32  row_num  )  [inline, inherited]

creation of subview (row vector)

Reimplemented from Mat< eT >.

Definition at line 412 of file Col_meat.hpp.

References access::rw().

00413   {
00414   arma_debug_check( (row_num >= Mat<eT>::n_rows), "Col::row(): out of bounds" );
00415   
00416   return access::rw(Mat<eT>::mem[row_num]);
00417   }

template<typename eT >
arma_inline eT Col< eT >::row ( const u32  row_num  )  const [inline, inherited]

creation of subview (row vector)

Reimplemented from Mat< eT >.

Definition at line 424 of file Col_meat.hpp.

00426   {
00427   arma_debug_check( (row_num >= Mat<eT>::n_rows), "Col::row(): out of bounds" );
00428   
00429   return Mat<eT>::mem[row_num];
00430   }

template<typename eT >
arma_inline subview_col< eT > Col< eT >::rows ( const u32  in_row1,
const u32  in_row2 
) [inline, inherited]

creation of subview (submatrix comprised of specified row vectors)

Reimplemented from Mat< eT >.

Definition at line 437 of file Col_meat.hpp.

Referenced by op_pinv::direct_pinv().

00438   {
00439   arma_debug_check( ( (in_row1 > in_row2) || (in_row2 >= Mat<eT>::n_rows) ), "Col::rows(): indices out of bounds or incorrectly used");
00440   
00441   return subview_col<eT>(*this, 0, in_row1, in_row2);
00442   }

template<typename eT >
arma_inline const subview_col< eT > Col< eT >::rows ( const u32  in_row1,
const u32  in_row2 
) const [inline, inherited]

creation of subview (submatrix comprised of specified row vectors)

Reimplemented from Mat< eT >.

Definition at line 449 of file Col_meat.hpp.

00451   {
00452   arma_debug_check( ( (in_row1 > in_row2) || (in_row2 >= Mat<eT>::n_rows) ), "Col::rows(): indices out of bounds or incorrectly used");
00453   
00454   return subview_col<eT>(*this, 0, in_row1, in_row2);
00455   }

template<typename eT >
template<typename T1 , typename op_type >
Col< eT >::Col ( const Op< T1, op_type > &  X  )  [inline, inherited]

construct a column vector from Op, i.e. run the previously delayed operations; the result of the operations must have exactly one column

Definition at line 463 of file Col_meat.hpp.

00464   : Mat<eT>(X)
00465   {
00466   arma_extra_debug_sigprint();
00467   
00468   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00469   }

template<typename eT >
template<typename T1 , typename op_type >
const Col< eT > & Col< eT >::operator= ( const Op< T1, op_type > &  X  )  [inline, inherited]

construct a column vector from Op, i.e. run the previously delayed operations; the result of the operations must have exactly one column

Reimplemented from Mat< eT >.

Definition at line 478 of file Col_meat.hpp.

References Col< eT >::operator=().

00479   {
00480   arma_extra_debug_sigprint();
00481   
00482   Mat<eT>::operator=(X);
00483   arma_debug_check( (Mat<eT>::n_cols > 1), "Col::operator=(): given matrix can't be interpreted as a column vector" );
00484   return *this;
00485   }

template<typename eT >
template<typename T1 , typename op_type >
const Col< eT > & Col< eT >::operator*= ( const Op< T1, op_type > &  X  )  [inline, inherited]

in-place matrix multiplication, with the right-hand-side operand having delayed operations

Reimplemented from Mat< eT >.

Definition at line 493 of file Col_meat.hpp.

References Col< eT >::operator*=().

00494   {
00495   arma_extra_debug_sigprint();
00496   
00497   Mat<eT>::operator*=(X);
00498   
00499   arma_debug_check( (Mat<eT>::n_cols > 1), "Col::operator=(): incompatible dimensions" );
00500   
00501   return *this;
00502   }

template<typename eT >
template<typename T1 , typename T2 , typename glue_type >
Col< eT >::Col ( const Glue< T1, T2, glue_type > &  X  )  [inline, inherited]

construct a column vector from Glue, i.e. run the previously delayed operations; the result of the operations must have exactly one column

Definition at line 510 of file Col_meat.hpp.

00511   : Mat<eT>(X)
00512   {
00513   arma_extra_debug_sigprint();
00514   
00515   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00516   }

template<typename eT >
template<typename T1 , typename T2 , typename glue_type >
const Col< eT > & Col< eT >::operator= ( const Glue< T1, T2, glue_type > &  X  )  [inline, inherited]

construct a column vector from Glue, i.e. run the previously delayed operations; the result of the operations must have exactly one column

Reimplemented from Mat< eT >.

Definition at line 525 of file Col_meat.hpp.

References Col< eT >::operator=().

00526   {
00527   arma_extra_debug_sigprint();
00528   
00529   Mat<eT>::operator=(X);
00530   
00531   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00532   
00533   return *this;
00534   }

template<typename eT >
template<typename T1 , typename T2 , typename glue_type >
const Col< eT > & Col< eT >::operator*= ( const Glue< T1, T2, glue_type > &  X  )  [inline, inherited]

in-place matrix multiplications, with the right-hand-side operands having delayed operations

Reimplemented from Mat< eT >.

Definition at line 542 of file Col_meat.hpp.

References Col< eT >::operator*=().

00543   {
00544   arma_extra_debug_sigprint();
00545   
00546   Mat<eT>::operator*=(X);
00547   
00548   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00549   
00550   return *this;
00551   }

template<typename eT >
void Col< eT >::set_size ( const u32  n_elem  )  [inline, inherited]

change the number of rows

Definition at line 559 of file Col_meat.hpp.

Referenced by Col< eT >::copy_size(), auxlib::eig_sym(), Col< eT >::set_size(), and auxlib::svd().

00560   {
00561   arma_extra_debug_sigprint();
00562   
00563   Mat<eT>::set_size(in_n_elem,1);
00564   }

template<typename eT >
void Col< eT >::set_size ( const u32  n_rows,
const u32  n_cols 
) [inline, inherited]

change the number of rows (this function re-implements mat::set_size() in order to check the number of columns)

Reimplemented from Mat< eT >.

Definition at line 572 of file Col_meat.hpp.

References min(), and Col< eT >::set_size().

00573   {
00574   arma_extra_debug_sigprint();
00575 
00576   // min() is used in case in_n_cols is zero
00577   Mat<eT>::set_size( in_n_rows, (std::min)( u32(1), in_n_cols ) );
00578   
00579   arma_debug_check( (in_n_cols > 1), "Col::set_size(): incompatible dimensions" );
00580   }

template<typename eT >
template<typename eT2 >
void Col< eT >::copy_size ( const Mat< eT2 > &  m  )  [inline, inherited]

change the number of rows (this function re-implements mat::copy_size() in order to check the number of columns)

Definition at line 589 of file Col_meat.hpp.

References min(), Mat< eT >::n_cols, Mat< eT >::n_rows, and Col< eT >::set_size().

Referenced by unwrap_write< Col< eT > >::unwrap_write(), unwrap_write< Row< eT > >::unwrap_write(), and unwrap_write< Mat< eT > >::unwrap_write().

00590   {
00591   arma_extra_debug_sigprint();
00592   
00593   // min() is used in case x.n_cols is zero
00594   Mat<eT>::set_size( x.n_rows, (std::min)( u32(1), x.n_cols ) );
00595   
00596   arma_debug_check( (x.n_cols > 1), "Col::copy_size(): incompatible dimensions" );
00597   }

template<typename eT >
void Col< eT >::zeros (  )  [inline, inherited]

Reimplemented from Mat< eT >.

Definition at line 604 of file Col_meat.hpp.

Referenced by Col< eT >::zeros().

00605   {
00606   arma_extra_debug_sigprint();
00607   
00608   Mat<eT>::zeros();
00609   }

template<typename eT >
void Col< eT >::zeros ( const u32  n_elem  )  [inline, inherited]

Definition at line 616 of file Col_meat.hpp.

References Col< eT >::zeros().

00617   {
00618   arma_extra_debug_sigprint();
00619   
00620   Mat<eT>::zeros(in_n_elem, 1);
00621   }

template<typename eT >
void Col< eT >::zeros ( const u32  n_rows,
const u32  n_cols 
) [inline, inherited]

Reimplemented from Mat< eT >.

Definition at line 628 of file Col_meat.hpp.

References min(), and Col< eT >::zeros().

00629   {
00630   arma_extra_debug_sigprint();
00631   
00632   // min() is used in case in_n_cols is zero
00633   Mat<eT>::zeros( in_n_rows, (std::min)( u32(1), in_n_cols ) );
00634   
00635   arma_debug_check( (in_n_cols > 1), "Col::zeros(): incompatible dimensions" );
00636   }

template<typename eT >
void Col< eT >::ones (  )  [inline, inherited]

Reimplemented from Mat< eT >.

Definition at line 643 of file Col_meat.hpp.

Referenced by Col< eT >::ones().

00644   {
00645   arma_extra_debug_sigprint();
00646   
00647   Mat<eT>::ones();
00648   }

template<typename eT >
void Col< eT >::ones ( const u32  n_elem  )  [inline, inherited]

Definition at line 655 of file Col_meat.hpp.

References Col< eT >::ones().

00656   {
00657   arma_extra_debug_sigprint();
00658   
00659   Mat<eT>::ones(in_n_elem, 1);
00660   }

template<typename eT >
void Col< eT >::ones ( const u32  n_rows,
const u32  n_cols 
) [inline, inherited]

Reimplemented from Mat< eT >.

Definition at line 667 of file Col_meat.hpp.

References min(), and Col< eT >::ones().

00668   {
00669   arma_extra_debug_sigprint();
00670   
00671   // min() is used in case in_n_cols is zero
00672   Mat<eT>::ones( in_n_rows, (std::min)( u32(1), in_n_cols ) );
00673   
00674   arma_debug_check( (in_n_cols > 1), "Col::ones(): incompatible dimensions" );
00675   }

template<typename eT >
void Col< eT >::load ( const std::string  name,
const file_type  type = auto_detect 
) [inline, inherited]

load a matrix from a file

Reimplemented from Mat< eT >.

Definition at line 682 of file Col_meat.hpp.

00683   {
00684   arma_extra_debug_sigprint();
00685   
00686   Mat<eT>::load(name,type);
00687   
00688   arma_debug_check( (Mat<eT>::n_cols > 1), "Col(): incompatible dimensions" );
00689   }