Function matrix_column¶
-
template<class
mat_t
, classmat_column_t
>
mat_column_to2scl
::
matrix_column
(mat_t &M, size_t column)¶ Construct a column of a matrix.
This class template works with combinations of ublas
matrix
andmatrix_column
objects,arma::mat
andarma::colvec
, andEigen::MatrixXd
andEigen::VectorXd
.- Note
When calling this function with ublas objects, the namespace prefix
"o2scl::"
must often be specified, otherwise some compilers will use argument dependent lookup and get (justifiably) confused with matrix_column in the ublas namespace.- Note
The template parameters must be explicitly specified when calling this template function.