Matrix<T>.Add Scaled In Place Method
Adds a scaled matrix to this matrix.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
A reference to this instance.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public virtual Matrix<T> AddScaledInPlace(
T factor,
Matrix<T> matrix
)
Parameters
Return Value
Matrix<T>A reference to this instance.
Remarks
Using this method is more efficient than evaluating the equivalent expression using overloaded operators. In the latter case, two intermediate matrices are created. This method doesn't create any intermediate matrices.
Exceptions
Argument | matrix is null. |
Dimension | The length of matrix does not equal the length of this instance. |