As above,but I define matrix dimension by template parameter.When I try to implement a matrix multiplication, some trouble occurs.My matrix multiplication prototype as bellow:
matrix_array<class __item__, std::size_t ROW, std::size_t COL>;
matrix_array<__item__, ROW, COL> operator* (
const matrix_array<__item__, COL, >& b) const;
So there is a question, how to pass the third template argument of matrix b
?I can just to define a new template parameter, but it's so terrible.