Linear Algebra Pool<T>.Rent Vector 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#
A dense Vector<T> of the specified length.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.7
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
Argument | length is less than or equal to zero. |