Tensor<T>.AsTensorSpan Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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_1.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
Implements
Applies to
AsTensorSpan(ReadOnlySpan<NIndex>)
- Source:
- Tensor_1.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> 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>
override this.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
TensorSpan<T> based on the provided ranges.
Implements
Applies to
AsTensorSpan(ReadOnlySpan<NRange>)
- Source:
- Tensor_1.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> 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>
override this.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
TensorSpan<T> based on the provided ranges.
Implements
Applies to
AsTensorSpan(ReadOnlySpan<IntPtr>)
- Source:
- Tensor_1.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> startIndexes);
public System.Numerics.Tensors.TensorSpan<T> AsTensorSpan(scoped ReadOnlySpan<IntPtr> startIndexes);
abstract member AsTensorSpan : ReadOnlySpan<nativeint> -> System.Numerics.Tensors.TensorSpan<'T>
override this.AsTensorSpan : ReadOnlySpan<nativeint> -> System.Numerics.Tensors.TensorSpan<'T>
Public Function AsTensorSpan (startIndexes As ReadOnlySpan(Of IntPtr)) As TensorSpan(Of T)
Parameters
- startIndexes
-
ReadOnlySpan<nativeint>
The initial indexes from which the tensor will be converted.
Returns
TensorSpan<T> based on the provided ranges.