Adds a multiple of a matrix to this instance
and returns the result.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Matrix<T> AddScaled<T>(
Matrix<T> left,
T factor,
Matrix<T> right
)
Public Shared Function AddScaled(Of T) (
left As Matrix(Of T),
factor As T,
right As Matrix(Of T)
) As Matrix(Of T)
public:
generic<typename T>
static Matrix<T>^ AddScaled(
Matrix<T>^ left,
T factor,
Matrix<T>^ right
)
static member AddScaled :
left : Matrix<'T> *
factor : 'T *
right : Matrix<'T> -> Matrix<'T>
Parameters
- left
- Type: Extreme.MathematicsMatrixT
The left operand of the addition. - factor
- Type: T
Multiplier for the matrix right. - right
- Type: Extreme.MathematicsMatrixT
A MatrixT.
Type Parameters
- T
Return Value
Type:
MatrixTA
MatrixT that is the sum of the specified form of
this matrix and the matrix
right.
This method does not change this instance. The dimensions of the two
matrices must be compatible. Otherwise an exception of type
DimensionMismatchException is thrown.
Reference