Function matrix_row

O2scl : Function List

template<class mat_t, class mat_row_t>
mat_row_t o2scl::matrix_row(mat_t &M, size_t row)

Construct a row of a matrix.

This class template works with combinations of ublas matrix and matrix_row objects, arma::mat and arma::rowvec, 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_row in the ublas namespace.

Note

The template parameters must be explicitly specified when calling this template function.