Represents a 2-dimensional array stored in a linear array.
Namespace:
Extreme.Collections
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
Public Structure Array2D(Of T)
generic<typename T>
public value class Array2D
[<SealedAttribute>]
type Array2D<'T> = struct end
Type Parameters
- T
- The element type of the array.
The Array2DT type exposes the following members.
Top
| Name | Description |
---|
 | Item |
Gets or sets the element at the specified position.
|
 | LeadingDimension |
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.
|
Top
| Name | Description |
---|
 | AsArray1D |
Returns the array as an array with offset.
|
 | AsArraySlice |
Returns the array as an array slice with unit leadingDimension.
|
 | Clear |
Sets the specified number of elements to their default value.
|
 | Clone |
Creates a shallow copy of the array.
|
 | Column |
Returns an array with offset that corresponds to a column in the array.
|
 | ColumnFrom |
Returns an array with offset that corresponds to a column in the array that starts at the specified position.
|
  | CreateEmpty |
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 ValueTypeEquals(Object).) |
 | From(Int32) |
Returns the array starting at the specified position on the main diagonal.
|
 | From(Int32, Int32) |
Returns the array starting at the specified position.
|
 | From(Int32, Int32, Int32) |
Returns the array starting at the specified position with the specified leading dimension.
|
 | GetHashCode |
Gets a hash code for this instance.
(Overrides ValueTypeGetHashCode.) |
 | GetIndex |
Gets the index in the storage array of the element at the specified position.
|
 | GetType | Gets the Type of the current instance. (Inherited from Object.) |
 | Row |
Returns the array slice that corresponds to a row in the array.
|
 | RowFrom |
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.) |
 | Transpose |
Transposes the elements of the 2D array and returns the result.
|
 | TransposeTo |
Transposes the elements of the 2D array and returns the result in the specified array.
|
 | VectorFrom |
Returns an array slice with a specified stride that starts at the specified position.
|
 | WithLeadingDimension |
Returns the array at the current position
with the specified leading dimension.
|
Top
Top
| Name | Description |
---|
  | Empty |
Returns an empty 2D array.
|
Top
Use the Array2DT 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.
Array2DT objects do not have a size. The actual dimensions must be
supplied separately.
Caution |
---|
The Array2DT type is meant for performance-critical code.
No bounds checks or other validation is performed. |
Reference