def combine_scalar

stelliferous@0.0.2.0 · tensor.bend:546

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

546def combine_scalar(~Element: Data,~operation: Element -> Element -> Element,name: String,operations: F32,tensor: Tensor<Element>,+value: Element) -> Tensor<Element>:
547  match tensor:
548    case Tensor{storage,shape,fill,status,workers}: scalar_status(~Element,~operation,name,status,storage,shape,fill,value,workers)
549    case Banded{bands,geometry,shape,fill,status,workers}:
550      scalar_bands(~Element,~operation,operations,status,bands,geometry,shape,fill,workers,value)

Uses (5)

Used by (7)