Array1D<T> Implicit  Conversion Operators

Definition

Namespace: Numerics.NET.Collections
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

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.
C#
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.
C#
public static implicit operator ArraySlice<T> (
	Array1D<T> array
)

Parameters

array  Array1D<T>
The array to convert.

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.
C#
public static implicit operator ReadOnlySpan<T> (
	Array1D<T> array
)

Parameters

array  Array1D<T>
The 1D array to convert.

Return Value

ReadOnlySpan<T>

Implicit Conversion (Array1D<T> to Span<T>)

Implicitly converts a 1D array to a (writable) span.
C#
public static implicit operator Span<T> (
	Array1D<T> array
)

Parameters

array  Array1D<T>
The 1D array to convert.

Return Value

Span<T>

See Also