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