Leer en inglés

Compartir a través de


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
Source:
ITensor.cs

Creates a tensor span for the entire underlying buffer.

C#
public System.Numerics.Tensors.TensorSpan<T> AsTensorSpan();

Returns

The converted TensorSpan<T>.

Applies to

.NET 10 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

AsTensorSpan(ReadOnlySpan<NIndex>)

Source:
ITensor.cs
Source:
ITensor.cs

Creates a tensor span for the specified start indexes.

C#
public System.Numerics.Tensors.TensorSpan<T> AsTensorSpan(scoped ReadOnlySpan<System.Buffers.NIndex> startIndex);

Parameters

startIndex
ReadOnlySpan<NIndex>

The start indexes to be used.

Returns

The converted TensorSpan<T>.

Applies to

.NET 10 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

AsTensorSpan(ReadOnlySpan<NRange>)

Source:
ITensor.cs
Source:
ITensor.cs

Creates a tensor span for the specified ranges.

C#
public System.Numerics.Tensors.TensorSpan<T> AsTensorSpan(scoped ReadOnlySpan<System.Buffers.NRange> range);

Parameters

range
ReadOnlySpan<NRange>

The ranges to be used.

Returns

The converted TensorSpan<T>.

Applies to

.NET 10 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

AsTensorSpan(ReadOnlySpan<IntPtr>)

Source:
ITensor.cs
Source:
ITensor.cs

Creates a tensor span for the specified start indexes.

C#
public System.Numerics.Tensors.TensorSpan<T> AsTensorSpan(scoped ReadOnlySpan<IntPtr> start);

Parameters

start

ReadOnlySpan<IntPtr>

The start locations to be used.

Returns

The converted TensorSpan<T>.

Applies to

.NET 10 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)