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:
parent
4ac47ac8af
commit
e3aede39d8
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue