Commit 3630e23
committed
Use LinearAlgebra library for norm calculations
Refactor approximation_error functions to use Julia's standard
LinearAlgebra functions instead of manually implementing norms:
- L2 norm: Use norm() with weighted scaling
- L1 norm: Use dot() for weighted sum
- L∞ norm: Use norm(diff, Inf)
This makes the code more idiomatic and leverages optimized
implementations from Julia's standard library.1 parent 2fbd04b commit 3630e23
2 files changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
675 | | - | |
| 675 | + | |
| 676 | + | |
676 | 677 | | |
677 | | - | |
| 678 | + | |
| 679 | + | |
678 | 680 | | |
679 | | - | |
| 681 | + | |
| 682 | + | |
680 | 683 | | |
681 | 684 | | |
682 | 685 | | |
| |||
696 | 699 | | |
697 | 700 | | |
698 | 701 | | |
699 | | - | |
| 702 | + | |
| 703 | + | |
700 | 704 | | |
701 | | - | |
| 705 | + | |
| 706 | + | |
702 | 707 | | |
703 | | - | |
| 708 | + | |
| 709 | + | |
704 | 710 | | |
705 | 711 | | |
706 | 712 | | |
| |||
0 commit comments