37 #ifndef NEKTAR_LIB_UTILITIES_NEK_MATRIX_HPP
38 #define NEKTAR_LIB_UTILITIES_NEK_MATRIX_HPP
48 template<
typename DataType,
typename FormType>
54 for(
unsigned int i = 0; i < rhs.GetRows(); ++i)
57 for(
unsigned int j = 0; j < rhs.GetColumns(); ++j)
60 os.precision(osprecision);
62 if( j != rhs.GetColumns() - 1 )
68 if( i != rhs.GetRows()-1 )
76 template<
typename DataType,
typename FormType>
80 os <<
"[" << std::endl;
82 for(
unsigned int i = 0; i < rhs.GetRows(); ++i)
84 for(
unsigned int j = 0; j < rhs.GetColumns(); ++j)
99 if( i != rhs.GetRows()-1 )
104 os <<
"]" << std::endl;
The above copyright notice and this permission notice shall be included.
std::ostream & operator<<(std::ostream &os, const NekMatrix< DataType, FormType > &rhs)
std::ostream & operator>>(std::ostream &os, const NekMatrix< DataType, FormType > &rhs)