Answer the question
In order to leave comments, you need to log in
How to compare 2 classes with different template parameters?
There is a matrix class:
template<const std::size_t rows, const std::size_t columns, typename T = int>
class Matrix
{
using type = T;
static constexpr std::size_t m_Columns = columns;
static constexpr std::size_t m_Rows = rows;
std::array<std::array<T, columns>, rows> m_Matrix;
}
template<typename M, typename std::enable_if<std::is_same<T, typename M::type>::value>::type = true>
template<typename M, typename std::enable_if<std::is_same<T, typename M::type>::value>::type = true && столбцы м1 = строкам м2>
Matrix<rows, M::m_Columns, T> MultiplyOnMatrix(const M& matrix)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question