mindspore.ops.Igammac
- class mindspore.ops.Igammac[source]
Compute the upper regularized incomplete Gamma function Q(a, x).
Refer to
mindspore.ops.igammac()
for more details.- Inputs:
a (Tensor) - The input tensor.
x (Tensor) - The input tensor. It should have the same dtype with a.
- Outputs:
Tensor, has the same dtype as a and x.
- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> import mindspore >>> import numpy as np >>> from mindspore import Tensor, ops >>> a = Tensor(np.array([2.0, 4.0, 6.0, 8.0]).astype(np.float32)) >>> x = Tensor(np.array([2.0, 3.0, 4.0, 5.0]).astype(np.float32)) >>> igammac = ops.Igammac() >>> output = igammac(a, x) >>> print (output) [0.40600586 0.6472318 0.7851304 0.8666283 ] >>> a = Tensor(2.1, mindspore.float32) >>> x = Tensor(2.1, mindspore.float32) >>> igammac = ops.Igammac() >>> output = igammac(a, x) >>> print (output) 0.40825662