Matrix<T>.AddScaledAsRightCore Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

AddScaledAsRightCore(Matrix<T>, T, Matrix<T>) Adds two matrices.
AddScaledAsRightCore(T, Vector<T>, Dimension, Matrix<T>) Adds a matrix and a vector broadcast along the specified dimension.

AddScaledAsRightCore(Matrix<T>, T, Matrix<T>)

Adds two matrices.
C#
protected virtual Matrix<T> AddScaledAsRightCore(
	Matrix<T> left,
	T factor,
	Matrix<T>? result
)

Parameters

left  Matrix<T>
The left operand.
factor  T
The scale factor for this 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 factor times the corresponding elements of this vector.

Exceptions

DimensionMismatchException

This matrix and left do not have the same number of rows and columns.

AddScaledAsRightCore(T, Vector<T>, Dimension, Matrix<T>)

Adds a matrix and a vector broadcast along the specified dimension.
C#
protected virtual Matrix<T> AddScaledAsRightCore(
	T factor,
	Vector<T> left,
	Dimension broadcastDimension,
	Matrix<T>? result
)

Parameters

factor  T
The scale factor for the matrix.
left  Vector<T>
The left operand.
broadcastDimension  Dimension
A value that specifies whether the elements in left should be broadcast across rows or columns.
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 left.

Exceptions

DimensionMismatchException

This matrix and left do not have the same length.

See Also