Show / Hide Table of Contents

    Method FillIndexed

    val FillIndexed: Tensor<'T> -> int64 [] -> 'T -> unit

    Fills the tensor with values returned by the specifed function.

    Declaration
    val FillIndexed: trgt:Tensor<'T> -> fn:int64 [] -> 'T -> unit
    Parameters
    Type Name Description
    Tensor<'T> trgt

    The target tensor to fill.

    int64 [] -> 'T fn

    A function that takes the index of the element to fill and returns the corresponding value.

    Type Parameters
    Name Description
    'T
    See Also
    val init: int64 list -> int64 [] -> 'T -> Tensor<'T>
    HostTensor.Parallel.FillIndexed``1
    Back to top Generated by DocFX