Share via


ITensor<TSelf,T>.AsTensorSpan Method

Definition

Overloads

AsTensorSpan()

Creates a new tensor span over the tensor.

AsTensorSpan(ReadOnlySpan<NIndex>)

Creates a tensor span for the specified start indexes.

AsTensorSpan(ReadOnlySpan<NRange>)

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

AsTensorSpan(ReadOnlySpan<IntPtr>)

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

AsTensorSpan()

Source:
ITensor.cs
Source:
ITensor.cs

Creates a new tensor span over the tensor.

public:
 System::Numerics::Tensors::TensorSpan<T> AsTensorSpan();
public System.Numerics.Tensors.TensorSpan<T> AsTensorSpan();
abstract member AsTensorSpan : unit -> System.Numerics.Tensors.TensorSpan<'T>
Public Function AsTensorSpan () As TensorSpan(Of T)

Returns

The tensor span representation of the tensor.

Applies to

AsTensorSpan(ReadOnlySpan<NIndex>)

Source:
ITensor.cs
Source:
ITensor.cs

Creates a tensor span for the specified start indexes.

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

Parameters

startIndexes
ReadOnlySpan<NIndex>

The initial indexes from which the tensor will be converted.

Returns

The converted TensorSpan<T>.

Applies to

AsTensorSpan(ReadOnlySpan<NRange>)

Source:
ITensor.cs
Source:
ITensor.cs

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

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

Parameters

ranges
ReadOnlySpan<NRange>

The ranges of the tensor to convert.

Returns

The tensor span representation of the tensor.

Applies to

AsTensorSpan(ReadOnlySpan<IntPtr>)

Source:
ITensor.cs
Source:
ITensor.cs

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

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

Parameters

startIndexes

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

The initial indexes from which the tensor will be converted.

Returns

The tensor span representation of the tensor.

Applies to