Native Array 2D<T> Structure
Represents a 2-dimensional array stored in a linear array.
Definition
Namespace: Extreme.Collections
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public struct NativeArray2D<T>
Type Parameters
- T
- The element type of the array.
Remarks
Use the NativeArray2D<T> structure to represent two-dimensional arrays in a format suitable for calling external libraries like BLAS and LAPACK. The two-dimensional array is stored in a linear array. Columns are stored in contuguous blocks with a fixed number of elements between them.
NativeArray2D<T> objects do not have a size. The actual dimensions must be supplied separately.
Constructors
Native | Constructs a new array. |
Properties
Leading | Gets the number of elements between the start of successive columns. |
Offset | Gets the offset of the first element in the storage array. |
Values | Gets the storage array. |
Methods
AsArray1D | Returns the array as an array with offset. |
AsArray | Returns the array as an array slice with unit leadingDimension. |
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 | Creates an empty 2D array with the specified leading dimension. |
Diagonal | Returns an array slice that corresponds to a column in the array. |
Equals |
Checks if an object is equal to this instance.
(Overrides ValueType.Equals(Object)) |
From( | Returns the array starting at the specified position on the main diagonal. |
From( | Returns the array starting at the specified position. |
From( | Returns the array starting at the specified position with the specified leading dimension. |
Get |
Gets a hash code for this instance.
(Overrides ValueType.GetHashCode()) |
Get | Gets the index in the storage array of the element at the specified position. |
Get | Gets the Type of the current instance. (Inherited from Object) |
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. |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType) |
Vector | Returns an array slice with a specified stride that starts at the specified position. |
Operators
Equality( | Checks whether two 2D arrays are equal. |
Inequality( | Checks whether two 2D arrays are not equal. |
Fields
Empty | Returns an empty 2D array. |