ConstantMatrix<T>.AddScaledAsLeftCore Method

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

AddScaledAsLeftCore(T, Matrix<T>, Matrix<T>) Adds two matrices.
AddScaledAsLeftCore(T, Vector<T>, Dimension, Matrix<T>) Adds a matrix and a vector broadcast along the specified dimension.
AddScaledAsLeftCore(TransposeOperation, T, Matrix<T>, TransposeOperation, Matrix<T>) Adds a multiple of a matrix to this instance and returns the result.

AddScaledAsLeftCore(T, Matrix<T>, Matrix<T>)

Adds two matrices.
C#
protected override Matrix<T> AddScaledAsLeftCore(
	T factor,
	Matrix<T> right,
	Matrix<T>? result
)

Parameters

factor  T
The scale factor for right.
right  Matrix<T>
The right operand.
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 this matrix and factor times right.

Exceptions

DimensionMismatchException

This matrix and right do not have the same length.

See Also