Matrix.MaxInto Method

Definition

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

Overload List

MaxInto<T>(Matrix<T>, T, Matrix<T>) Returns a matrix whose elements are the maximum of the components of a matrix and a real number.
MaxInto<T>(Matrix<T>, Matrix<T>, Matrix<T>) Returns a matrix whose elements are the maximums of the components of two vectors.

MaxInto<T>(Matrix<T>, T, Matrix<T>)

Returns a matrix whose elements are the maximum of the components of a matrix and a real number.
C#
public static Matrix<T> MaxInto<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.

MaxInto<T>(Matrix<T>, Matrix<T>, Matrix<T>)

Returns a matrix whose elements are the maximums of the components of two vectors.
C#
public static Matrix<T> MaxInto<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