brahmap.math.parallel_norm¶
Computes the 2-norm of a vector distributed among multiple MPI
processes as a replacement for
np.linalg.norm().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
x
|
NDArray[number]
|
The input array to compute the norm for |
required |
Returns:
| Type | Description |
|---|---|
float
|
The final computed 2-norm of the vector \(x\) |