Share via


ITensor Interface

Definition

Represents a tensor.

public interface class ITensor : System::Numerics::Tensors::IReadOnlyTensor
[System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5001", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public interface ITensor : System.Numerics.Tensors.IReadOnlyTensor
[<System.Diagnostics.CodeAnalysis.Experimental("SYSLIB5001", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type ITensor = interface
    interface IReadOnlyTensor
Public Interface ITensor
Implements IReadOnlyTensor
Derived
Attributes
Implements

Properties

FlattenedLength

Gets the total number of items in the tensor.

(Inherited from IReadOnlyTensor)
IsEmpty

Gets a value indicating whether this tensor is empty.

(Inherited from IReadOnlyTensor)
IsPinned

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

(Inherited from IReadOnlyTensor)
IsReadOnly

Gets a value that indicates whether the tensor is read-only.

Item[ReadOnlySpan<IntPtr>]

Gets or sets 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.

(Inherited from IReadOnlyTensor)
Rank

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

(Inherited from IReadOnlyTensor)
Strides

Gets the stride of each dimension in the tensor.

(Inherited from IReadOnlyTensor)

Methods

Clear()

Clears the contents of the tensor span.

Fill(Object)

Fills the elements of this tensor with a specified value.

GetPinnedHandle()

Pins and gets a MemoryHandle to the backing memory.

(Inherited from IReadOnlyTensor)

Applies to