This commit is contained in:
Pavel Krajcevski 2014-02-21 16:11:49 -05:00
parent 0c4b226c78
commit 05eeb09f36
2 changed files with 5 additions and 5 deletions

View file

@ -73,7 +73,7 @@ namespace FasTC {
// Matrix multiplication
template<typename _T, const int nTarget>
MatrixBase<T, nRows, nTarget> operator*(const MatrixBase<_T, nCols, nTarget> &m) {
MatrixBase<T, nRows, nTarget> MultiplyMatrix(const MatrixBase<_T, nCols, nTarget> &m) const {
MatrixBase<T, nRows, nTarget> result;
for(int r = 0; r < nRows; r++)
for(int c = 0; c < nTarget; c++) {

View file

@ -198,7 +198,7 @@ namespace FasTC {
MultSwitch(const TypeOne &a, const TypeTwo &b)
: m_A(a), m_B(b) { }
ResultType GetMultiplication() { return m_A * m_B; }
ResultType GetMultiplication() const { return m_A * m_B; }
};
template<typename TypeOne, typename TypeTwo>
@ -216,7 +216,7 @@ namespace FasTC {
MultSwitch(const TypeOne &a, const TypeTwo &b)
: m_A(a), m_B(b) { }
ResultType GetMultiplication() { return ScalarMultiply(m_B, m_A); }
ResultType GetMultiplication() const { return ScalarMultiply(m_B, m_A); }
};
template<typename TypeOne, typename TypeTwo>
@ -234,7 +234,7 @@ namespace FasTC {
MultSwitch(const TypeOne &a, const TypeTwo &b)
: m_A(a), m_B(b) { }
ResultType GetMultiplication() { return ScalarMultiply(m_A, m_B); }
ResultType GetMultiplication() const { return ScalarMultiply(m_A, m_B); }
};
template<typename TypeOne, typename TypeTwo>
@ -252,7 +252,7 @@ namespace FasTC {
MultSwitch(const TypeOne &a, const TypeTwo &b)
: m_A(a), m_B(b) { }
ResultType GetMultiplication() { return m_A.Dot(m_B); }
ResultType GetMultiplication() const { return m_A.Dot(m_B); }
};
template<typename TypeOne, typename TypeTwo>