Matrix<T>.AddScaledAsLeftCore(T, Vector<T>, Dimension, Matrix<T>) Method

Adds a matrix and a vector broadcast along the specified dimension.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
protected virtual Matrix<T> AddScaledAsLeftCore(
	T factor,
	Vector<T> right,
	Dimension broadcastDimension,
	Matrix<T> result
)

Parameters

factor  T
The scale factor for right.
right  Vector<T>
The right operand.
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.

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