Matrix<T>.Add Scaled Into Method
Adds two matrices.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
A matrix whose elements are the sum of the corresponding elements of left and right.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static Matrix<T> AddScaledInto(
Matrix<T> left,
T factor,
Matrix<T> right,
Matrix<T>? result
)
Parameters
- left Matrix<T>
- The first matrix.
- factor T
- The scale factor for right.
- right Matrix<T>
- The second matrix.
- result Matrix<T>
- The matrix that is to hold the result. May be null.
Return Value
Matrix<T>A matrix whose elements are the sum of the corresponding elements of left and right.
Exceptions
Argument | left is null. -or- right is null. |
Dimension | left and right do not have the same length. |