pow#
- metatensor.pow(A: TensorMap, B: float | int) TensorMap[source]#
Return a new
TensorMapwith the same metadata ofAand the values being the element-wiseB-power ofA.values.Bcan only be a scalar. If gradients are present inAthe gradient of the resultingTensorMapare given by the standard formula:\[\nabla(A ^ B) = B* \nabla A * A^{(B-1)}\]