map

inline override fun StructureND<Double>.map(transform: DoubleField.(Double) -> Double): DoubleTensor(source)

Applies the transform function to each element of the tensor and returns the resulting modified tensor.

Return

the resulting tensor after applying the function.

Parameters

transform

the function to be applied to each element of the tensor.