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

Subtracts a matrix from a vector broadcast along the specified dimension.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Matrix<T> Subtract<T>(
	Vector<T> left,
	Dimension broadcastDimension,
	Matrix<T> right
)

Parameters

left  Vector<T>
The vector to broadcast and subtract from.
broadcastDimension  Dimension
A value that specifies whether the elements in right should be broadcast across rows or columns.
right  Matrix<T>
The matrix to subtract from.

Type Parameters

T

Return Value

Matrix<T>
A matrix whose elements are equal to the corresponding element of left minus the corresponding element of right.

Exceptions

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchExceptionleft and right do not have the same length.

See Also