Function matrix_column (o2scl)

O2scl : Function List

template<>
arma::subview_col<double> o2scl::matrix_column<arma::mat, arma::subview_col<double>>(arma::mat &M, size_t column)

Armadillo version of matrix_column()

template<>
Eigen::MatrixXd::ColXpr o2scl::matrix_column<Eigen::MatrixXd, Eigen::MatrixXd::ColXpr>(Eigen::MatrixXd &M, size_t column)

Eigen version of matrix_column()

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.