Tensor<T>.AsReadOnlyTensorSpan 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
AsReadOnlyTensorSpan() |
Converts this Tensor<T> to a ReadOnlyTensorSpan<T> pointing to the same backing memory."/> |
AsReadOnlyTensorSpan(ReadOnlySpan<NIndex>) |
Converts this Tensor<T> to a ReadOnlyTensorSpan<T> pointing to the same backing memory based on the provided start indexes."/> |
AsReadOnlyTensorSpan(ReadOnlySpan<NRange>) |
Converts this Tensor<T> to a ReadOnlyTensorSpan<T> pointing to the same backing memory based on the provided ranges."/> |
AsReadOnlyTensorSpan(ReadOnlySpan<IntPtr>) |
Converts this Tensor<T> to a ReadOnlyTensorSpan<T> pointing to the same backing memory based on the provided start locations."/> |
AsReadOnlyTensorSpan()
- Source:
- Tensor_1.cs
- Source:
- Tensor.cs
Converts this Tensor<T> to a ReadOnlyTensorSpan<T> pointing to the same backing memory."/>
public:
virtual System::Numerics::Tensors::ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan();
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan();
abstract member AsReadOnlyTensorSpan : unit -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
override this.AsReadOnlyTensorSpan : unit -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
Public Function AsReadOnlyTensorSpan () As ReadOnlyTensorSpan(Of T)
Returns
Implements
Applies to
AsReadOnlyTensorSpan(ReadOnlySpan<NIndex>)
- Source:
- Tensor_1.cs
- Source:
- Tensor.cs
Converts this Tensor<T> to a ReadOnlyTensorSpan<T> pointing to the same backing memory based on the provided start indexes."/>
public:
virtual System::Numerics::Tensors::ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(ReadOnlySpan<System::Buffers::NIndex> startIndexes);
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(scoped ReadOnlySpan<System.Buffers.NIndex> startIndexes);
abstract member AsReadOnlyTensorSpan : ReadOnlySpan<System.Buffers.NIndex> -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
override this.AsReadOnlyTensorSpan : ReadOnlySpan<System.Buffers.NIndex> -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
Public Function AsReadOnlyTensorSpan (startIndexes As ReadOnlySpan(Of NIndex)) As ReadOnlyTensorSpan(Of T)
Parameters
- startIndexes
- ReadOnlySpan<NIndex>
The initial indexes from which the tensor will be converted.
Returns
The converted ReadOnlyTensorSpan<T>.
Implements
Applies to
AsReadOnlyTensorSpan(ReadOnlySpan<NRange>)
- Source:
- Tensor_1.cs
- Source:
- Tensor.cs
Converts this Tensor<T> to a ReadOnlyTensorSpan<T> pointing to the same backing memory based on the provided ranges."/>
public:
virtual System::Numerics::Tensors::ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(ReadOnlySpan<System::Buffers::NRange> ranges);
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(scoped ReadOnlySpan<System.Buffers.NRange> ranges);
abstract member AsReadOnlyTensorSpan : ReadOnlySpan<System.Buffers.NRange> -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
override this.AsReadOnlyTensorSpan : ReadOnlySpan<System.Buffers.NRange> -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
Public Function AsReadOnlyTensorSpan (ranges As ReadOnlySpan(Of NRange)) As ReadOnlyTensorSpan(Of T)
Parameters
- ranges
- ReadOnlySpan<NRange>
The ranges of the tensor to convert.
Returns
The readonly tensor span representation of the tensor.
Implements
Applies to
AsReadOnlyTensorSpan(ReadOnlySpan<IntPtr>)
- Source:
- Tensor_1.cs
- Source:
- Tensor.cs
Converts this Tensor<T> to a ReadOnlyTensorSpan<T> pointing to the same backing memory based on the provided start locations."/>
public:
virtual System::Numerics::Tensors::ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(ReadOnlySpan<IntPtr> startIndexes);
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(scoped ReadOnlySpan<IntPtr> startIndexes);
abstract member AsReadOnlyTensorSpan : ReadOnlySpan<nativeint> -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
override this.AsReadOnlyTensorSpan : ReadOnlySpan<nativeint> -> System.Numerics.Tensors.ReadOnlyTensorSpan<'T>
Public Function AsReadOnlyTensorSpan (startIndexes As ReadOnlySpan(Of IntPtr)) As ReadOnlyTensorSpan(Of T)
Parameters
- startIndexes
-
ReadOnlySpan<nativeint>
The initial indexes from which the tensor will be converted.
Returns
The readonly tensor span representation of the tensor.