Поделиться через


TensorSpan<T>.AsReadOnlyTensorSpan Method

Definition

Overloads

AsReadOnlyTensorSpan()

Creates a new readonly tensor span over the tensor.

AsReadOnlyTensorSpan(ReadOnlySpan<NIndex>)

Creates a read-only tensor span for the specified start indexes.

AsReadOnlyTensorSpan(ReadOnlySpan<NRange>)

Creates a new readonly tensor span over a portion of the tensor defined by the specified range.

AsReadOnlyTensorSpan(ReadOnlySpan<IntPtr>)

Creates a new readonly tensor span over a portion of the tensor starting at a specified position to the end of the tensor.

AsReadOnlyTensorSpan()

Source:
TensorSpan.cs

Creates a new readonly tensor span over the tensor.

public:
 System::Numerics::Tensors::ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan();
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan();
member this.AsReadOnlyTensorSpan : unit -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
Public Function AsReadOnlyTensorSpan () As ReadOnlyTensorSpan(Of T)

Returns

The readonly tensor span representation of the tensor.

Applies to

AsReadOnlyTensorSpan(ReadOnlySpan<NIndex>)

Source:
TensorSpan.cs

Creates a read-only tensor span for the specified start indexes.

public:
 System::Numerics::Tensors::ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(ReadOnlySpan<System::Buffers::NIndex> startIndexes);
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(scoped ReadOnlySpan<System.Buffers.NIndex> startIndexes);
member this.AsReadOnlyTensorSpan : ReadOnlySpan<System.Buffers.NIndex> -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
Public Function AsReadOnlyTensorSpan (startIndexes As ReadOnlySpan(Of NIndex)) As ReadOnlyTensorSpan(Of T)

Parameters

startIndexes
ReadOnlySpan<NIndex>

The initial indexes from which the tensor will be converted.

Returns

The converted ReadOnlyTensorSpan<T>.

Applies to

AsReadOnlyTensorSpan(ReadOnlySpan<NRange>)

Source:
TensorSpan.cs

Creates a new readonly tensor span over a portion of the tensor defined by the specified range.

public:
 System::Numerics::Tensors::ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(ReadOnlySpan<System::Buffers::NRange> ranges);
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(scoped ReadOnlySpan<System.Buffers.NRange> ranges);
member this.AsReadOnlyTensorSpan : ReadOnlySpan<System.Buffers.NRange> -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
Public Function AsReadOnlyTensorSpan (ranges As ReadOnlySpan(Of NRange)) As ReadOnlyTensorSpan(Of T)

Parameters

ranges
ReadOnlySpan<NRange>

The ranges of the tensor to convert.

Returns

The readonly tensor span representation of the tensor.

Applies to

AsReadOnlyTensorSpan(ReadOnlySpan<IntPtr>)

Source:
TensorSpan.cs

Creates a new readonly tensor span over a portion of the tensor starting at a specified position to the end of the tensor.

public:
 System::Numerics::Tensors::ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(ReadOnlySpan<IntPtr> startIndexes);
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(scoped ReadOnlySpan<IntPtr> startIndexes);
member this.AsReadOnlyTensorSpan : ReadOnlySpan<nativeint> -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
Public Function AsReadOnlyTensorSpan (startIndexes As ReadOnlySpan(Of IntPtr)) As ReadOnlyTensorSpan(Of T)

Parameters

startIndexes

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

The initial indexes from which the tensor will be converted.

Returns

The readonly tensor span representation of the tensor.

Applies to