Matrix.MinInto Method

Definition

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

Overload List

MinInto<T>(Matrix<T>, T, Matrix<T>) Returns a matrix whose elements are the minimum of the components of a matrix and a real number.
MinInto<T>(Matrix<T>, Matrix<T>, Matrix<T>) Returns a matrix whose elements are the minimums of the components of two vectors.

MinInto<T>(Matrix<T>, T, Matrix<T>)

Returns a matrix whose elements are the minimum of the components of a matrix and a real number.
C#
public static Matrix<T> MinInto<T>(
	this Matrix<T> matrix,
	T value,
	Matrix<T>? result
)

Parameters

matrix  Matrix<T>
A Matrix<T>.
value  T
A real number.
result  Matrix<T>
The matrix that is to hold the result. May be null.

Type Parameters

T

Return Value

Matrix<T>
A matrix whose elements are the largest of the corresponding element of matrix and value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Matrix<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

ArgumentNullException

matrix is null.

MinInto<T>(Matrix<T>, Matrix<T>, Matrix<T>)

Returns a matrix whose elements are the minimums of the components of two vectors.
C#
public static Matrix<T> MinInto<T>(
	this Matrix<T> left,
	Matrix<T> right,
	Matrix<T>? result
)

Parameters

left  Matrix<T>
A Matrix<T>.
right  Matrix<T>
A Matrix<T>.
result  Matrix<T>
The matrix that is to hold the result. May be null.

Type Parameters

T

Return Value

Matrix<T>
A matrix whose elements are the largest of the corresponding elements of left and right.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Matrix<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Exceptions

ArgumentNullException

left is null.

-or-

right is null.

DimensionMismatchException

The length of left is not equal to the length of right.

See Also