diff --git a/src/nvmath/Sparse.cpp b/src/nvmath/Sparse.cpp index 885c49f..757093d 100644 --- a/src/nvmath/Sparse.cpp +++ b/src/nvmath/Sparse.cpp @@ -1,4 +1,4 @@ -// This code is in the public domain -- Ignacio Castaņo +// This code is in the public domain -- Ignacio Castao #include #include @@ -235,7 +235,7 @@ void FullMatrix::madRow(uint y, float alpha, FullVector & v) const const uint count = v.dimension(); for (uint i = 0; i < count; i++) { - v[i] += m_array[y * count + i]; + v[i] += alpha * m_array[y * count + i]; } }