See http://www.lsc.nd.edu/research/mtl/ for more details.
Additions to MTL | |
We provide a few standard operators in MTL's namespace to make MTL matrices work with a greater range of code that also works with other matrix types, particularly TNT.
Only those operations that can be implemented cleanly and efficiently in MTL are supported. The general routines like operator+(Matrix,Matrix) appear to be difficult to support efficiently since they require and return a temporary variable. | |
template<class Matrix> Matrix & | operator *= (Matrix &A, const typename Matrix::value_type B) |
template<class Matrix> Matrix & | operator+= (Matrix &A, const typename Matrix::value_type B) |
template<class Matrix> Matrix & | operator-= (Matrix &A, const typename Matrix::value_type B) |