Linear Algebra Pool<T> Class
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.7
public class LinearAlgebraPool<T>
- Inheritance
- Object → LinearAlgebraPool<T>
Type Parameters
- T
- The type of elements in the vector or matrix.
Remarks
Using the LinearAlgebraPool<T> class to rent and return vectors that rent their storage buffers from an array pool. This can help reduce the number of memory allocations and deallocations in the application, which can improve performance in situations where vectors and matrices are created and destroyed frequently.
Many operations that return parts of vectors or matrices return a view that references the original buffer. Care must therefore be taken when using the LinearAlgebraPool<T> class because it is possible to inadvertently retain references to rented buffers.
Constructors
Linear | Initializes a new instance of the LinearAlgebraPool<T> class with the specified array pool. |
Properties
Array | The array pool used to rent and return storage arrays. |
Shared | Gets a shared instance of the LinearAlgebraPool<T> class. |
Methods
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
Get | Serves as the default hash function. (Inherited from Object) |
Get | Gets the Type of the current instance. (Inherited from Object) |
Memberwise | Creates a shallow copy of the current Object. (Inherited from Object) |
Rent | Rents a band matrix with the specified dimensions from the pool. |
Rent | Rents a Hermitian matrix with the specified dimensions from the pool. |
Rent | Rents a lower triangular matrix with the specified dimensions from the pool. |
Rent | Rents a dense matrix with the specified dimensions from the pool. |
Rent | Rents a symmetric matrix with the specified dimensions from the pool. |
Rent | Rents a lower triangular matrix with the specified dimensions from the pool. |
Rent | Rents a vector of the specified length from the pool. |
Return( | Returns a rented matrix to the pool. |
Return( | Returns a rented vector to the pool. |
ToString | Returns a string that represents the current object. (Inherited from Object) |