Vector<T>.MaxCore Method

Definition

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

Overload List

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

MaxCore(T, Vector<T>)

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

Parameters

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

Return Value

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

MaxCore(Vector<T>, Vector<T>)

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

Parameters

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

Return Value

Vector<T>
A vector whose elements are the largest of the corresponding elements of this vector and other.

Exceptions

DimensionMismatchException

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

See Also