123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- #ifndef CERES_INTERNAL_DENSE_QR_SOLVER_H_
- #define CERES_INTERNAL_DENSE_QR_SOLVER_H_
- #include <memory>
- #include "ceres/dense_qr.h"
- #include "ceres/internal/disable_warnings.h"
- #include "ceres/internal/eigen.h"
- #include "ceres/internal/export.h"
- #include "ceres/linear_solver.h"
- namespace ceres::internal {
- class DenseSparseMatrix;
- class CERES_NO_EXPORT DenseQRSolver final : public DenseSparseMatrixSolver {
- public:
- explicit DenseQRSolver(const LinearSolver::Options& options);
- private:
- LinearSolver::Summary SolveImpl(
- DenseSparseMatrix* A,
- const double* b,
- const LinearSolver::PerSolveOptions& per_solve_options,
- double* x) final;
- LinearSolver::Summary SolveUsingEigen(
- DenseSparseMatrix* A,
- const double* b,
- const LinearSolver::PerSolveOptions& per_solve_options,
- double* x);
- LinearSolver::Summary SolveUsingLAPACK(
- DenseSparseMatrix* A,
- const double* b,
- const LinearSolver::PerSolveOptions& per_solve_options,
- double* x);
- const LinearSolver::Options options_;
- ColMajorMatrix lhs_;
- Vector rhs_;
- std::unique_ptr<DenseQR> dense_qr_;
- };
- }
- #include "ceres/internal/reenable_warnings.h"
- #endif
|