Breyta

Deila með


Tensor.AsReadOnlyTensorSpan<T>(T[], ReadOnlySpan<IntPtr>) Method

Definition

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Tensors::ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(cli::array <T> ^ array, ReadOnlySpan<IntPtr> shape);
public static System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T> (this T[]? array, scoped ReadOnlySpan<IntPtr> shape);
static member AsReadOnlyTensorSpan : 'T[] * ReadOnlySpan<nativeint> -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
<Extension()>
Public Function AsReadOnlyTensorSpan(Of T) (array As T(), shape As ReadOnlySpan(Of IntPtr)) As ReadOnlyTensorSpan(Of T)

Type Parameters

T

Parameters

array
T[]
shape

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

Returns

Applies to