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: 10.7.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.

DimensionMismatchException

result is not null and its length does not equal the length of vector.

ComponentReadOnlyException

result is not null and is read-only.

See Also