def apply_indexed

stelliferous@0.0.2.0 · tensor.bend:468

import stelliferous@0.0.2.0/tensor.bend as Tensor
import Base

468def apply_indexed(~Element: Data,~operation: U32 -> Element -> Element,operations: F32,tensor: Tensor<Element>) -> Tensor<Element>:
469  match tensor:
470    case Tensor{storage,shape,fill,status,workers}: apply_indexed_status(~Element,~operation,status,storage,shape,fill,workers)
471    case Banded{bands,geometry,shape,fill,status,workers}: apply_indexed_bands(~Element,~operation,operations,status,bands,geometry,shape,fill,workers)

Uses (5)

Used by (2)