LinearAlgebraPool<T>.RentVector Method

Rents a vector of the specified length from the pool.

Definition

Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.7
C#
public Vector<T> RentVector(
	int length
)

Parameters

length  Int32
The length of the vector.

Return Value

Vector<T>
A dense Vector<T> of the specified length.

Remarks

This method rents the storage array from the ArrayPool. It then allocates a new Matrix<T> instance with the rented array as its storage.

Exceptions

ArgumentOutOfRangeException

length is less than or equal to zero.

See Also