Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IReadOnlyTensor Interface

Definition

Namespace:
System.Numerics.Tensors
Assembly:
System.Numerics.Tensors.dll
Package:
System.Numerics.Tensors v11.0.0-preview.5.26302.115
Source:
IReadOnlyTensor.cs
Source:
IReadOnlyTensor.cs

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.

Represents a read-only tensor.

public interface class IReadOnlyTensor
public interface IReadOnlyTensor
type IReadOnlyTensor = interface
Public Interface IReadOnlyTensor
Derived

Properties

Name Description
FlattenedLength

Gets the total number of items in the tensor.

HasAnyDenseDimensions

Gets a value that indicates whether the current tensor has any dimension span where IsDense is true.

IsDense

Gets a value that indicates whether the current tensor is dense.

IsEmpty

Gets a value indicating whether this tensor is empty.

IsPinned

Gets a value that indicates whether the underlying buffer is pinned.

Item[ReadOnlySpan<IntPtr>]

Gets the specified element of the tensor.

Item[ReadOnlySpan<NIndex>]

Gets the value at the specified indexes.

Lengths

Gets the length of each dimension in the tensor.

Rank

Gets the rank, or number of dimensions, in the tensor.

Strides

Gets the stride of each dimension in the tensor.

Applies to


Feedback

Was this page helpful?