Matrix<T>.UnaryNegation Operator

Negates a matrix.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
public static Matrix<T> operator -(
	Matrix<T> matrix
)

Parameters

matrix  Matrix<T>
A matrix.

Return Value

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

Exceptions

ArgumentNullException

matrix is null.

See Also