Sum up the elements in a matrix into a single value.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(Matrix_ps), | intent(in) | :: | this | The matrix to compute. |
||
| real(kind=NTREAL), | intent(out) | :: | sum | The sum of all elements. |
Sum up the elements in a matrix into a single value.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(Matrix_ps), | intent(in) | :: | this | The matrix to compute. |
||
| complex(kind=NTCOMPLEX), | intent(out) | :: | sum | The sum of all elements. |