Span2D<T> Structure

Note: This API is now obsolete.
Provides a two-dimensional representation of a contiguous region of arbitrary memory.

Definition

Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public readonly struct Span2D<T>
Inheritance
Object  →  ValueType  →  Span2D<T>

Type Parameters

T
The type of the elements of the span.

Constructors

Span2D<T> Constructs a new 2D span.

Properties

Empty Gets an empty Span2D<T> object.
Item Gets or sets the element at the specified position.

Methods

AsSpanSlice Returns the array as an array slice with unit leadingDimension.
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.
EqualsIndicates whether this instance and a specified object are equal.
(Inherited from ValueType)
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.
GetHashCodeReturns the hash code for this instance.
(Inherited from ValueType)
GetIndex Gets the index in the storage array of the element at the specified position.
GetTypeGets 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.
SliceFrom Returns an array slice with a specified stride that starts at the specified position.
SpanFrom Returns the array starting at the specified position.
ToStringReturns the fully qualified type name of this instance.
(Inherited from ValueType)
TransposeTo Transposes the elements of the 2D array and returns the result in the specified array.
WithLeadingDimension Returns the array at the current position with the specified leading dimension.

Fields

LeadingDimension The number of elements along the leading dimension of the two-dimensional region.
Span The one-dimensional span that defines the region of memory.

See Also