IStorage 2D<T, TSlice, TStorage2D> Interface
Specifies the contract for storage of 2-dimensional arrays
that return rows, columns and other vectors a slices of the specified type..
Definition
Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public interface IStorage2D<T, TSlice, TStorage2D> : IStorage2D<T, TStorage2D>,
IStorage2D<T>
where TStorage2D : Object, IStorage2D<T, TSlice, TStorage2D>
- Implements
- IStorage2D<T>, IStorage2D<T, TStorage2D>
Type Parameters
- T
- The element type of the array.
- TSlice
- The type used for storage of 1-dimensional arrays.
- TStorage2D
Properties
Item |
Gets or sets the element at the specified position.
(Inherited from IStorage2D<T>) |
Leading |
Gets the number of elements between the start of successive columns.
(Inherited from IStorage2D<T>) |
Memory2D |
Gets a 2D memory block over the elements of the array.
Return ValueA Memory2D<T>.(Inherited from IStorage2D<T>) |
Offset |
Gets the position of the first stored element in the array
(Inherited from IStorage2D<T>) |
Span2D |
Gets a 2D span over the elements of the array.
Return ValueA Span2D<T>.(Inherited from IStorage2D<T>) |
Methods
AsSlice | Returns the array as an array slice with unit leadingDimension. |
Clear |
Sets the specified number of elements to their default value.
(Inherited from IStorage2D<T>) |
Clone |
Creates a deep copy of the array.
(Inherited from IStorage2D<T, TStorage2D>) Obsolete. |
Clone |
Returns a new contiguous 2D array with the specified elements of the current array.
(Inherited from IStorage2D<T, TStorage2D>) |
Column | Returns an array with offset that corresponds to a column in the array. |
Column | Returns an array with offset that corresponds to a column in the array that starts at the specified position. |
Create( |
Constructs a new storage array of the specified dimensions.
(Inherited from IStorage2D<T, TStorage2D>) |
Create(T[], Int32, Int32) |
Creates an array over a segment in a regular array.
(Inherited from IStorage2D<T, TStorage2D>) |
Diagonal | Returns an array slice that corresponds to a column in the array. |
From( |
Returns the array starting at the specified position.
(Inherited from IStorage2D<T, TStorage2D>) |
From( |
Returns the array starting at the specified position with the specified leading dimension.
(Inherited from IStorage2D<T, TStorage2D>) |
Get |
Gets the index in the storage array of the element at the specified position.
(Inherited from IStorage2D<T>) |
Resize |
Returns a new array with the specified size and leading dimension.
Elements are copied to the new array.
(Inherited from IStorage2D<T, TStorage2D>) |
Row | Returns the array slice that corresponds to a row in the array. |
Row | Returns the array slice that corresponds to a row in the array that starts at the specified position. |
Slice | Returns an array slice with a specified stride that starts at the specified position. |
Span |
Gets a span over the elements of the array.
Return ValueA Span<T>.(Inherited from IStorage2D<T>) |
Transpose |
Transposes the elements of the 2D array and returns the result.
(Inherited from IStorage2D<T, TStorage2D>) |
Transpose |
Transposes the elements of the 2D array and returns the result in the specified array.
(Inherited from IStorage2D<T, TStorage2D>) |
With |
Returns the array at the current position
with the specified leading dimension.
(Inherited from IStorage2D<T, TStorage2D>) |