ITensor Interface

Definition

Represents a tensor.

public interface class ITensor : System::Numerics::Tensors::IReadOnlyTensor
public interface ITensor : System.Numerics.Tensors.IReadOnlyTensor
type ITensor = interface
    interface IReadOnlyTensor
Public Interface ITensor
Implements IReadOnlyTensor
Derived
Implements

Properties

FlattenedLength

Gets the total number of items in the tensor.

(Inherited from IReadOnlyTensor)
HasAnyDenseDimensions

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

(Inherited from IReadOnlyTensor)
IsDense

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

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

Applies to