Matrix<T>.MaxCore Method

Definition

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

Overload List

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

MaxCore(T, Matrix<T>)

Returns a matrix whose elements are the maximum of the components of a matrix and a real number.
C#
protected virtual Matrix<T> MaxCore(
	T value,
	Matrix<T>? result
)

Parameters

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

Return Value

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

MaxCore(Matrix<T>, Matrix<T>)

Returns a matrix whose elements are the maximums of the components of two vectors.
C#
protected virtual Matrix<T> MaxCore(
	Matrix<T> other,
	Matrix<T>? result
)

Parameters

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

Return Value

Matrix<T>
A matrix whose elements are the largest of the corresponding elements of this matrix and other.

Exceptions

DimensionMismatchException

The length of this matrix is not equal to the length of other.

See Also