o  iÐã@s<ddlmZddlmZddlmZdd d „Zdd d „ZdS)é)Ú annotations)ÚTensor)ÚNdarrayOrTensorÚxrÚ spatial_dimÚintÚreturncCs|d |¡d}|S)aá Compute the root sum of squares (rss) of the data (typically done for multi-coil MRI samples) Args: x: Input tensor spatial_dim: dimension along which rss is applied Returns: rss of x along spatial_dim Example: .. code-block:: python import numpy as np x = torch.ones([2,3]) # the following line prints Tensor([1.41421356, 1.41421356, 1.41421356]) print(rss(x,spatial_dim=0)) égà?)Úsum©rrZrss_x©r úe/home/dell461/cl/sdc2/last_ska_mid/HISourceFinder-master-l/src/monai/apps/reconstruction/mri_utils.pyÚroot_sum_of_squares_tsrrcCst||ƒ}|S)aã Compute the root sum of squares (rss) of the data (typically done for multi-coil MRI samples) Args: x: Input array/tensor spatial_dim: dimension along which rss is applied Returns: rss of x along spatial_dim Example: .. code-block:: python import numpy as np x = np.ones([2,3]) # the following line prints array([1.41421356, 1.41421356, 1.41421356]) print(rss(x,spatial_dim=0)) )rr r r r Úroot_sum_of_squares*s rN)rrrrrr)rrrrrr)Ú __future__rÚtorchrÚmonai.config.type_definitionsrrrr r r r Ús