Adds a scaled matrix to this matrix.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public virtual Matrix<T> AddScaledInPlace(
T factor,
Matrix<T> matrix
)
Public Overridable Function AddScaledInPlace (
factor As T,
matrix As Matrix(Of T)
) As Matrix(Of T)
public:
virtual Matrix<T>^ AddScaledInPlace(
T factor,
Matrix<T>^ matrix
)
abstract AddScaledInPlace :
factor : 'T *
matrix : Matrix<'T> -> Matrix<'T>
override AddScaledInPlace :
factor : 'T *
matrix : Matrix<'T> -> Matrix<'T>
Parameters
- factor
- Type: T
The scale factor for matrix. - matrix
- Type: Extreme.MathematicsMatrixT
The matrix to add.
Return Value
Type:
MatrixTA reference to this instance.
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.
Reference