39 bool operator==(
const Array<OneD, NekDouble>&
lhs,
const Array<OneD, NekDouble>& rhs)
46 const Array<OneD, const NekDouble>& rhs,
49 if( lhs.num_elements() != rhs.num_elements() )
54 if( lhs.data() == rhs.data() )
59 for(
unsigned int i = 0; i < lhs.num_elements(); ++i)
61 if( fabs(lhs[i]-rhs[i]) > tol )
71 bool operator==(
const Array<TwoD, NekDouble>&
lhs,
const Array<TwoD, NekDouble>& rhs)
77 const Array<TwoD, const NekDouble>& rhs,
80 if( (lhs.GetRows() != rhs.GetRows()) ||
81 (lhs.GetColumns() != rhs.GetColumns()) )
86 if( lhs.data() == rhs.data() )
91 for(
unsigned int i = 0; i < lhs.GetRows(); ++i)
93 for(
unsigned int j = 0; j < lhs.GetColumns(); ++j)
95 if( fabs(lhs[i][j]-rhs[i][j]) > tol )