次の方法で共有


ITensor<TSelf,T>.AsTensorSpan Method

Definition

Overloads

AsTensorSpan()

Creates a tensor span for the entire underlying buffer.

AsTensorSpan(ReadOnlySpan<NIndex>)

Creates a tensor span for the specified start indexes.

AsTensorSpan(ReadOnlySpan<NRange>)

Creates a tensor span for the specified ranges.

AsTensorSpan(ReadOnlySpan<IntPtr>)

Creates a tensor span for the specified start indexes.

AsTensorSpan()

Source:
ITensor.cs

Creates a tensor span for the entire underlying buffer.

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 converted TensorSpan<T>.

Applies to

AsTensorSpan(ReadOnlySpan<NIndex>)

Source:
ITensor.cs

Creates a tensor span for the specified start indexes.

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

Parameters

startIndex
ReadOnlySpan<NIndex>

The start indexes to be used.

Returns

The converted TensorSpan<T>.

Applies to

AsTensorSpan(ReadOnlySpan<NRange>)

Source:
ITensor.cs

Creates a tensor span for the specified ranges.

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

Parameters

range
ReadOnlySpan<NRange>

The ranges to be used.

Returns

The converted TensorSpan<T>.

Applies to

AsTensorSpan(ReadOnlySpan<IntPtr>)

Source:
ITensor.cs

Creates a tensor span for the specified start indexes.

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

Parameters

start

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

The start locations to be used.

Returns

The converted TensorSpan<T>.

Applies to