#ifndef OPERATORS_H #define OPERATORS_H #include #include template inline MatrixT operator*(const MatrixT& A, const MatrixT& B) { MatrixT result(A.rows(),B.cols()); result.multiply(A,B); return result; } template inline VectorT operator*(const MatrixT& A, const VectorT& v) { VectorT result(A.rows(),v.size()); result.multiply(A,v); return result; } template inline VectorT operator*(const VectorT& v, const MatrixT& B) { VectorT result(v.size(),B.cols()); result.multiply(v,B); return result; } #endif // OPERATORS_H