Function matrix_column

O2scl : Function List

template<class mat_t, class mat_column_t>
mat_column_t o2scl::matrix_column(mat_t &M, size_t column)

Construct a column of a matrix.

This class template works with combinations of ublas matrix and matrix_column objects, arma::mat and arma::colvec, and Eigen::MatrixXd and Eigen::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.