| 31 | class L1Solver { |
| 32 | public: |
| 33 | L1Solver(const L1SolverOptions& options, const MatrixType& mat) |
| 34 | : options_(options), a_(mat) { |
| 35 | // Pre-compute the sparsity pattern. |
| 36 | const MatrixType spd_mat = a_.transpose() * a_; |
| 37 | linear_solver_.compute(spd_mat); |
| 38 | } |
| 39 | |
| 40 | void Solve(const Eigen::VectorXd& rhs, Eigen::VectorXd* solution) { |
| 41 | Eigen::VectorXd& x = *solution; |
nothing calls this directly
no outgoing calls
no test coverage detected