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 number of elements in the tensor.

(Inherited from IReadOnlyTensor)
IsEmpty

Gets a value that indicates whether the collection is currently 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 collection is read-only.

Item[ReadOnlySpan<IntPtr>]

Gets the value at the specified indexes.

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 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 tensor.

Fill(Object)

Fills the contents of this tensor with the given value.

GetPinnedHandle()

Pins and gets a MemoryHandle to the backing memory.

(Inherited from IReadOnlyTensor)

Applies to