Show / Hide Table of Contents

    Method usingArray

    val usingArray: 'T [] -> Tensor<'T>

    Creates a one-dimensional tensor referencing the specified data.

    Declaration
    val usingArray: data:'T [] -> Tensor<'T>
    Parameters
    Type Name Description
    'T [] data

    The data array to use.

    Returns
    Type Description
    Tensor<'T>

    A tensor using the array data as its storage.

    Type Parameters
    Name Description
    'T

    The type of the data.

    Remarks

    The data array is referenced, not copied. Thus changing the tensor modifies the specified data array and vice versa.

    See Also
    val ofArray: 'T [] -> Tensor<'T>
    Back to top Generated by DocFX