Delen via


Tensor<T>.AsTensorSpan Method

Definition

Overloads

AsTensorSpan()

Converts this Tensor<T> to a TensorSpan<T> pointing to the same backing memory."/>

AsTensorSpan(ReadOnlySpan<NIndex>)

Converts this Tensor<T> to a TensorSpan<T> pointing to the same backing memory based on the provided start indexes."/>

AsTensorSpan(ReadOnlySpan<NRange>)

Converts this Tensor<T> to a TensorSpan<T> pointing to the same backing memory based on the provided ranges."/>

AsTensorSpan(ReadOnlySpan<IntPtr>)

Converts this Tensor<T> to a TensorSpan<T> pointing to the same backing memory based on the provided start locations."/>

AsTensorSpan()

Source:
Tensor.cs
Source:
Tensor.cs

Converts this Tensor<T> to a TensorSpan<T> pointing to the same backing memory."/>

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

Returns

TensorSpan<T>

Implements

Applies to

AsTensorSpan(ReadOnlySpan<NIndex>)

Source:
Tensor.cs
Source:
Tensor.cs

Converts this Tensor<T> to a TensorSpan<T> pointing to the same backing memory based on the provided start indexes."/>

public:
 virtual 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>
override this.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 ranges you want in the TensorSpan<T>.

Returns

TensorSpan<T> based on the provided ranges.

Implements

Applies to

AsTensorSpan(ReadOnlySpan<NRange>)

Source:
Tensor.cs
Source:
Tensor.cs

Converts this Tensor<T> to a TensorSpan<T> pointing to the same backing memory based on the provided ranges."/>

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

Parameters

start
ReadOnlySpan<NRange>

The ranges you want in the TensorSpan<T>.

Returns

TensorSpan<T> based on the provided ranges.

Implements

Applies to

AsTensorSpan(ReadOnlySpan<IntPtr>)

Source:
Tensor.cs
Source:
Tensor.cs

Converts this Tensor<T> to a TensorSpan<T> pointing to the same backing memory based on the provided start locations."/>

public:
 virtual 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>
override this.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 location you want in the TensorSpan<T>.

Returns

TensorSpan<T> based on the provided ranges.

Implements

Applies to