Show / Hide Table of Contents

    Interface ITensor

    Type-neutral interface to Tensor<'T> of any type 'T.

    Namespace: Tensor
    Assembly: Tensor.dll
    Syntax
    interface ITensor
    Remarks

    These functions are useful for working with tensors of unknown types. For most use cases the functions provided by Tensor<'T> are better suited.

    Properties

    Name Description
    abstract property DataType: Type

    type of data stored in this tensor

    abstract property Dev: ITensorDevice

    storage factory

    abstract property Full: string

    full contents string

    abstract property Item: int64 -> ITensor
    abstract property Item: Rng list -> ITensor

    n-dimensional slicing using a list of Rngs

    abstract property Layout: TensorLayout

    layout of this tensor (shape, offset and strides)

    abstract property M: ITensor * ITensor * ITensor * ITensor * ITensor -> ITensor

    Element selection using boolean mask. Specify NoMask for a dimension if no masking is desired.

    abstract property M: ITensor * ITensor * ITensor * ITensor -> ITensor

    Element selection using boolean mask. Specify NoMask for a dimension if no masking is desired.

    abstract property M: ITensor * ITensor * ITensor -> ITensor

    Element selection using boolean mask. Specify NoMask for a dimension if no masking is desired.

    abstract property M: ITensor * ITensor -> ITensor

    Element selection using boolean mask. Specify NoMask for a dimension if no masking is desired.

    abstract property M: ITensor list -> ITensor

    Element selection using boolean mask. Specify NoMask for a dimension if no masking is desired.

    abstract property M: ITensor -> ITensor

    Element selection using boolean mask. Specify NoMask for a dimension if no masking is desired.

    abstract property NDims: int

    number of dimensions

    abstract property NElems: int64

    number of elements

    abstract property Pretty: string

    pretty contents string

    abstract property Shape: int64 list

    shape

    abstract property Storage: ITensorStorage

    storage of this tensor

    Methods

    Name Description
    abstract member Copy: TensorOrder option -> ITensor

    returns a copy of the tensor

    abstract member FillZero: unit -> unit

    fills the tensors with zeros

    abstract member Relayout: TensorLayout -> ITensor

    a tensor with the same storage but new layout

    abstract member Transfer: ITensorDevice -> ITensor

    Transfers this tensor to the specifed device.

    See Also

    Tensor<'T>
    Back to top Generated by DocFX