Function matrix_row¶
-
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
andmatrix_row
objects,arma::mat
andarma::rowvec
, 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_row in the ublas namespace.Note
The template parameters must be explicitly specified when calling this template function.