Function matrix_row (o2scl)¶
-
template<>
arma::subview_row<double> o2scl::matrix_row<arma::mat, arma::subview_row<double>>(arma::mat &M, size_t row)¶ Armadillo version of matrix_row()
This function creates a
arma::subview_rowobject from an Armadillo matrix.
-
template<>
Eigen::MatrixXd::RowXpr o2scl::matrix_row<Eigen::MatrixXd, Eigen::MatrixXd::RowXpr>(Eigen::MatrixXd &M, size_t row)¶ Eigen version of 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
matrixandmatrix_rowobjects,arma::matandarma::rowvec, andEigen::MatrixXdandEigen::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.