21 #include <boost/numeric/ublas/matrix.hpp>
23 template<
typename EntryT>
24 using Matrix = boost::numeric::ublas::matrix<EntryT>;
25 template <
typename EntryT>
33 using boost::numeric::ublas::prod;
34 using boost::numeric::ublas::trans;
35 using boost::numeric::ublas::element_prod;
36 namespace boost {
namespace numeric {
namespace ublas {
43 template <
typename EntryT>
48 template <
typename MatrixT>
85 #endif // _MATRIX_HPP_
boost::numeric::ublas::matrix< EntryT > Matrix
Typedef for the main matrix class.
boost::numeric::ublas::identity_matrix< EntryT > Identity_Matrix
EntryT trace(const Matrix< EntryT > &M)
Finds trace of a square matrix.
bool isSquare(const MatrixT &M)
Convinience function to check if a matrix is square or not.