Matrix.Negate<T> Method

Negates a matrix.

Definition

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

Parameters

matrix  Matrix<T>
A matrix.

Type Parameters

T

Return Value

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

Exceptions

ArgumentNullException

matrix is null.

See Also