brahmap.math.parallel_norm
¶
A replacement of np.linalg.norm
to compute 2-norm of a vector
distributed among multiple MPI processes
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x
|
ndarray
|
Input array |
required |
Returns:
Type | Description |
---|---|
float
|
The norm of vector |