Matrix.Add Scaled Into Method
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Add | Adds a multiple of a matrix to another matrix and returns the result. |
Add | Adds a multiple of a vector broadcast along the specified dimension to another matrix and returns the result. |
Add | Adds a multiple of a matrix to another matrix and returns the result. |
AddScaledInto<T>(Matrix<T>, T, Matrix<T>, Matrix<T>)
public static Matrix<T> AddScaledInto<T>(
Matrix<T> left,
T factor,
Matrix<T> right,
Matrix<T>? result
)
Parameters
- left Matrix<T>
- The left operand of the addition.
- factor T
- Multiplier for the matrix right.
- right Matrix<T>
- A Matrix<T>.
- result Matrix<T>
- The matrix that is to hold the result. May be null.
Type Parameters
- T
Return Value
Matrix<T>A Matrix<T> that is the sum of the specified form of this matrix and the matrix right.
Remarks
This method does not change this instance. The dimensions of the two matrices must be compatible. Otherwise an exception of type DimensionMismatchException is thrown.
Exceptions
Argument | right is null. |
Dimension | The dimensions of this instance and the matrix right are not compatible for the specified operation. |
AddScaledInto<T>(Matrix<T>, T, Vector<T>, Dimension, Matrix<T>)
public static Matrix<T> AddScaledInto<T>(
Matrix<T> left,
T factor,
Vector<T> right,
Dimension broadcastDimension,
Matrix<T>? result
)
Parameters
- left Matrix<T>
- The left operand of the addition.
- factor T
- Multiplier for the matrix right.
- right Vector<T>
- A Matrix<T>.
- broadcastDimension Dimension
- A value that specifies whether the elements in right should be broadcast across rows or columns.
- result Matrix<T>
- The matrix that is to hold the result. May be null.
Type Parameters
- T
Return Value
Matrix<T>A Matrix<T> that is the sum of the specified form of this matrix and the matrix right.
Remarks
This method does not change this instance. The dimensions of the two matrices must be compatible. Otherwise an exception of type DimensionMismatchException is thrown.
Exceptions
Argument | right is null. |
Dimension | The dimensions of this instance and the matrix right are not compatible for the specified operation. |
AddScaledInto<T>(Matrix<T>, TransposeOperation, T, Matrix<T>, TransposeOperation, Matrix<T>)
public static Matrix<T> AddScaledInto<T>(
Matrix<T> left,
TransposeOperation leftOperation,
T factor,
Matrix<T> right,
TransposeOperation rightOperation,
Matrix<T>? result
)
Parameters
- left Matrix<T>
- The left operand of the addition.
- leftOperation TransposeOperation
- A TransposeOperation value that indicates which operation, if any, should be performed on this instance before adding.
- factor T
- Multiplier for the matrix right.
- right Matrix<T>
- A Matrix<T>.
- rightOperation TransposeOperation
- A TransposeOperation value that indicates which operation, if any, should be performed on the matrix right before adding.
- result Matrix<T>
- The matrix that is to hold the result. May be null.
Type Parameters
- T
Return Value
Matrix<T>A Matrix<T> that is the sum of the specified form of this matrix and the matrix right.
Remarks
This method does not change this instance. The dimensions of the two matrices must be compatible. Otherwise an exception of type DimensionMismatchException is thrown.
Exceptions
Argument | right is null. |
Dimension | THe dimensions of left and right as transformed by leftOperation and rightOperation, respectively, are not compatible. |