1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

DSP: Fixed an overly restrictive assertion in the Matrix multiplication operator

This commit is contained in:
Tom Poole 2018-01-02 10:09:15 +00:00
parent 4ac47ac8af
commit e3aede39d8
2 changed files with 2 additions and 2 deletions

View file

@ -116,7 +116,7 @@ Matrix<ElementType> Matrix<ElementType>::operator* (const Matrix<ElementType>& o
auto n = getNumRows(), m = other.getNumColumns(), p = getNumColumns();
Matrix result (n, m);
jassert (other.getNumRows() == p && n == m);
jassert (p == other.getNumRows());
size_t offsetMat = 0, offsetlhs = 0;

View file

@ -143,7 +143,7 @@ public:
/** Scalar multiplication */
inline Matrix& operator*= (ElementType scalar) noexcept
{
std::for_each (begin(), end(), [scalar] (ElementType& x) { x*= scalar; });
std::for_each (begin(), end(), [scalar] (ElementType& x) { x *= scalar; });
return *this;
}