Module utils

Module utils 

Source
Expand description

Utility functions for solver implementations.

Functions§

check_convergence
Check convergence based on specified criteria.
compute_norm
Compute vector norm according to specified type.
compute_residual
Compute residual vector: r = A*x - b
l1_norm
Compute the L1 norm of a vector.
l2_norm
Compute the L2 norm of a vector.
linf_norm
Compute the L∞ norm of a vector.