Vector.ReverseInto<T> Method

Returns a vector with the elements in reverse order.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.0
C#
public static Vector<T> ReverseInto<T>(
	Vector<T> vector,
	Vector<T>? result = null
)

Parameters

vector  Vector<T>
The vector whose elements to reverse.
result  Vector<T>  (Optional)
The vector that is to hold the result. May be null.

Type Parameters

T
The type of the elements of the vector.

Return Value

Vector<T>
A new vector with the elements of vector in reverse order.

Exceptions

ArgumentNullException

vector is null.

See Also