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