Array 1D<T> Implicit Conversion Operators
Definition
Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Implicit(T[] to Array1D<T>) | Implicitly converts a .NET array to an array with zero offset. |
Implicit(Array1D<T> to ArraySlice<T>) | Converts an array to an array slice with unit stride. |
Implicit(Array1D<T> to ReadOnlySpan<T>) | Implicitly converts a 1D array to a read-only span. |
Implicit(Array1D<T> to Span<T>) | Implicitly converts a 1D array to a (writable) span. |
Implicit Conversion (T[] to Array1D<T>)
Implicitly converts a .NET array to an array with zero offset.
public static implicit operator Array1D<T> (
T[] array
)
Parameters
- array T[]
- An array.
Return Value
Array1D<T>array as an array with zero offset.
Implicit Conversion (Array1D<T> to ArraySlice<T>)
Converts an array to an array slice with unit stride.
public static implicit operator ArraySlice<T> (
Array1D<T> array
)
Parameters
Return Value
ArraySlice<T>An array slice that is equivalent to array.
Implicit Conversion (Array1D<T> to ReadOnlySpan<T>)
Implicitly converts a 1D array to a read-only span.
public static implicit operator ReadOnlySpan<T> (
Array1D<T> array
)
Parameters
Return Value
ReadOnlySpan<T>Implicit Conversion (Array1D<T> to Span<T>)
Implicitly converts a 1D array to a (writable) span.