| 557 | } |
| 558 | |
| 559 | double getOneNorm(const DenseMatrix &m) |
| 560 | { |
| 561 | return m.lpNorm<1>(); |
| 562 | double norm = 0.0; |
| 563 | for(int i = 0; i < m.rows(); i++) { |
| 564 | for(int j = 0; j < m.cols(); j++) { |
| 565 | norm += std::abs(m(i, j)); |
| 566 | } |
| 567 | } |
| 568 | |
| 569 | return norm; |
| 570 | } |
| 571 | |
| 572 | double getTwoNorm(const DenseMatrix &m) |
| 573 | { |
no outgoing calls
no test coverage detected