Skip to content

Commit

Permalink
Move all headers from dir 'proxnlp' to dir 'proxsuite-nlp'
Browse files Browse the repository at this point in the history
  • Loading branch information
ManifoldFR authored and jorisv committed Dec 18, 2023
1 parent 394ad73 commit 6b0fb3a
Show file tree
Hide file tree
Showing 134 changed files with 285 additions and 286 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ if(BUILD_WITH_PINOCCHIO_SUPPORT)
endif(BUILD_WITH_PINOCCHIO_SUPPORT)

# --- MAIN LIBRARY ----------------------------------------
set(LIB_HEADER_DIR ${PROJECT_SOURCE_DIR}/include/proxnlp)
set(LIB_HEADER_DIR ${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME})
file(GLOB_RECURSE LIB_HEADERS ${LIB_HEADER_DIR}/*.hpp ${LIB_HEADER_DIR}/*.hxx)

set(LIB_SOURCES ${PROJECT_SOURCE_DIR}/src/block-kind.cpp)
Expand Down Expand Up @@ -242,7 +242,6 @@ add_header_group(LIB_HEADERS)
install(
TARGETS ${PROJECT_NAME}
EXPORT ${TARGETS_EXPORT_NAME}
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_FULL_INCLUDEDIR}
INCLUDES
DESTINATION ${CMAKE_INSTALL_FULL_INCLUDEDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}
Expand Down
14 changes: 7 additions & 7 deletions examples/circle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
* Optimize a quadratic function on a circle, or on a disk.
*
*/
#include "proxnlp/cost-function.hpp"
#include "proxnlp/pdal.hpp"
#include "proxnlp/modelling/spaces/vector-space.hpp"
#include "proxnlp/modelling/costs/squared-distance.hpp"
#include "proxnlp/modelling/costs/quadratic-residual.hpp"
#include "proxnlp/modelling/constraints/negative-orthant.hpp"
#include "proxnlp/prox-solver.hpp"
#include "proxsuite-nlp/cost-function.hpp"
#include "proxsuite-nlp/pdal.hpp"
#include "proxsuite-nlp/modelling/spaces/vector-space.hpp"
#include "proxsuite-nlp/modelling/costs/squared-distance.hpp"
#include "proxsuite-nlp/modelling/costs/quadratic-residual.hpp"
#include "proxsuite-nlp/modelling/constraints/negative-orthant.hpp"
#include "proxsuite-nlp/prox-solver.hpp"

#include "example-base.hpp"

Expand Down
10 changes: 5 additions & 5 deletions examples/equality-qp.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* Copyright (C) 2022 LAAS-CNRS, INRIA
*/
#include "proxnlp/modelling/costs/squared-distance.hpp"
#include "proxnlp/modelling/residuals/linear.hpp"
#include "proxnlp/modelling/constraints/equality-constraint.hpp"
#include "proxnlp/modelling/spaces/vector-space.hpp"
#include "proxnlp/prox-solver.hpp"
#include "proxsuite-nlp/modelling/costs/squared-distance.hpp"
#include "proxsuite-nlp/modelling/residuals/linear.hpp"
#include "proxsuite-nlp/modelling/constraints/equality-constraint.hpp"
#include "proxsuite-nlp/modelling/spaces/vector-space.hpp"
#include "proxsuite-nlp/prox-solver.hpp"

#include "example-base.hpp"

Expand Down
6 changes: 3 additions & 3 deletions examples/so2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* Optimize a quadratic function on a circle, or on a disk.
*
*/
#include "proxnlp/modelling/spaces/pinocchio-groups.hpp"
#include "proxnlp/modelling/costs/squared-distance.hpp"
#include "proxnlp/prox-solver.hpp"
#include "proxsuite-nlp/modelling/spaces/pinocchio-groups.hpp"
#include "proxsuite-nlp/modelling/costs/squared-distance.hpp"
#include "proxsuite-nlp/prox-solver.hpp"

#include <pinocchio/multibody/liegroup/special-orthogonal.hpp>
#include "example-base.hpp"
Expand Down
12 changes: 6 additions & 6 deletions examples/ur5-ik.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
#include <pinocchio/multibody/data.hpp>
#include <pinocchio/parsers/urdf.hpp>

#include <proxnlp/modelling/spaces/multibody.hpp>
#include <proxnlp/modelling/costs/quadratic-residual.hpp>
#include <proxnlp/modelling/costs/squared-distance.hpp>
#include <proxnlp/cost-sum.hpp>
#include <proxnlp/prox-solver.hpp>
#include <proxnlp/modelling/constraints.hpp>
#include <proxsuite-nlp/modelling/spaces/multibody.hpp>
#include <proxsuite-nlp/modelling/costs/quadratic-residual.hpp>
#include <proxsuite-nlp/modelling/costs/squared-distance.hpp>
#include <proxsuite-nlp/cost-sum.hpp>
#include <proxsuite-nlp/prox-solver.hpp>
#include <proxsuite-nlp/modelling/constraints.hpp>

#include <boost/filesystem/path.hpp>

Expand Down
10 changes: 0 additions & 10 deletions include/proxnlp/modelling/spaces/cartesian-product.txx

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// @copyright Copyright (C) 2022 LAAS-CNRS, INRIA
#pragma once

#include "proxnlp/function-base.hpp"
#include "proxsuite-nlp/function-base.hpp"

namespace proxnlp {

Expand Down Expand Up @@ -139,4 +139,4 @@ template <typename _Scalar> struct ConstraintObjectTpl {

} // namespace proxnlp

#include "proxnlp/constraint-base.hxx"
#include "proxsuite-nlp/constraint-base.hxx"
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "proxnlp/fwd.hpp"
#include "proxsuite-nlp/fwd.hpp"

namespace proxnlp {
namespace context {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/// @copyright Copyright (C) 2022 LAAS-CNRS, INRIA
#pragma once

#include "proxnlp/manifold-base.hpp"
#include "proxnlp/function-base.hpp"
#include "proxsuite-nlp/manifold-base.hpp"
#include "proxsuite-nlp/function-base.hpp"

#include <boost/core/demangle.hpp>
#include <ostream>
Expand Down Expand Up @@ -119,5 +119,5 @@ template <typename _Scalar> struct func_to_cost : CostFunctionBaseTpl<_Scalar> {
} // namespace proxnlp

#ifdef PROXSUITE_NLP_ENABLE_TEMPLATE_INSTANTIATION
#include "proxnlp/cost-function.txx"
#include "proxsuite-nlp/cost-function.txx"
#endif
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "proxnlp/cost-function.hpp"
#include "proxsuite-nlp/cost-function.hpp"

namespace proxnlp {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// @copyright Copyright (C) 2022 LAAS-CNRS, INRIA
#pragma once

#include "proxnlp/cost-function.hpp"
#include "proxsuite-nlp/cost-function.hpp"

namespace proxnlp {

Expand Down Expand Up @@ -112,8 +112,8 @@ template <typename _Scalar> struct CostSumTpl : CostFunctionBaseTpl<_Scalar> {

} // namespace proxnlp

#include "proxnlp/cost-sum.hxx"
#include "proxsuite-nlp/cost-sum.hxx"

#ifdef PROXSUITE_NLP_ENABLE_TEMPLATE_INSTANTIATION
#include "proxnlp/cost-sum.txx"
#include "proxsuite-nlp/cost-sum.txx"
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// @copyright Copyright (C) 2022 LAAS-CNRS, INRIA
#pragma once

#include "proxnlp/cost-sum.hpp"
#include "proxsuite-nlp/cost-sum.hpp"

namespace proxnlp {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "./cost-sum.hpp"
#include "proxnlp/context.hpp"
#include "proxsuite-nlp/context.hpp"

namespace proxnlp {

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// @brief Base definitions for function classes.
#pragma once

#include "proxnlp/fwd.hpp"
#include "proxsuite-nlp/fwd.hpp"

namespace proxnlp {
/**
Expand Down Expand Up @@ -85,5 +85,5 @@ struct C2FunctionTpl : public C1FunctionTpl<_Scalar> {
} // namespace proxnlp

#ifdef PROXSUITE_NLP_ENABLE_TEMPLATE_INSTANTIATION
#include "proxnlp/function-base.txx"
#include "proxsuite-nlp/function-base.txx"
#endif
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "proxnlp/context.hpp"
#include "proxnlp/function-base.hpp"
#include "proxsuite-nlp/context.hpp"
#include "proxsuite-nlp/function-base.hpp"

namespace proxnlp {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// @copyright Copyright (C) 2022 LAAS-CNRS, INRIA
#pragma once

#include "proxnlp/function-base.hpp"
#include "proxsuite-nlp/function-base.hpp"

#include <utility>

Expand Down Expand Up @@ -60,5 +60,5 @@ auto compose(const shared_ptr<C2FunctionTpl<Scalar>> &left,
} // namespace proxnlp

#ifdef PROXSUITE_NLP_ENABLE_TEMPLATE_INSTANTIATION
#include "proxnlp/function-ops.txx"
#include "proxsuite-nlp/function-ops.txx"
#endif
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "proxnlp/context.hpp"
#include "proxnlp/function-ops.hpp"
#include "proxsuite-nlp/context.hpp"
#include "proxsuite-nlp/function-ops.hpp"

namespace proxnlp {

Expand Down
6 changes: 3 additions & 3 deletions include/proxnlp/fwd.hpp → include/proxsuite-nlp/fwd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ using std::unique_ptr;

} // namespace proxnlp

#include "proxnlp/math.hpp"
#include "proxnlp/exceptions.hpp"
#include "proxnlp/macros.hpp"
#include "proxsuite-nlp/math.hpp"
#include "proxsuite-nlp/exceptions.hpp"
#include "proxsuite-nlp/macros.hpp"
#include "proxsuite-nlp/config.hpp"
#include "proxsuite-nlp/deprecated.hpp"
#include "proxsuite-nlp/warning.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// @copyright Copyright (C) 2022 LAAS-CNRS, INRIA
#pragma once

#include "proxnlp/fwd.hpp"
#include "proxsuite-nlp/fwd.hpp"

namespace proxnlp {
namespace helpers {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
/// @copyright Copyright (C) 2022 LAAS-CNRS, INRIA
#pragma once

#include "proxnlp/fwd.hpp"
#include "proxnlp/helpers-base.hpp"
#include "proxnlp/workspace.hpp"
#include "proxnlp/results.hpp"
#include "proxsuite-nlp/fwd.hpp"
#include "proxsuite-nlp/helpers-base.hpp"
#include "proxsuite-nlp/workspace.hpp"
#include "proxsuite-nlp/results.hpp"

namespace proxnlp {
namespace helpers {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// @copyright Copyright (C) 2022 LAAS-CNRS, INRIA
#pragma once

#include "proxnlp/helpers-base.hpp"
#include "proxsuite-nlp/helpers-base.hpp"

namespace proxnlp {
namespace helpers {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/// @copyright Copyright (C) 2022 LAAS-CNRS, INRIA
#pragma once

#include "proxnlp/linalg/block-ldlt.hpp"
#include "proxnlp/linalg/bunchkaufman.hpp"
#include "proxsuite-nlp/linalg/block-ldlt.hpp"
#include "proxsuite-nlp/linalg/bunchkaufman.hpp"
#ifdef PROXSUITE_NLP_USE_PROXSUITE_LDLT
#include "proxnlp/linalg/proxsuite-ldlt-wrap.hpp"
#include "proxsuite-nlp/linalg/proxsuite-ldlt-wrap.hpp"
#endif
#include <boost/variant.hpp>
#include <array>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
/// @copyright Copyright (C) 2022-2023 LAAS-CNRS, INRIA
#pragma once

#include "proxnlp/linalg/dense.hpp"
#include "proxnlp/linalg/block-triangular.hpp"
#include "proxsuite-nlp/linalg/dense.hpp"
#include "proxsuite-nlp/linalg/block-triangular.hpp"

#include "proxnlp/linalg/gemmt.hpp"
#include "proxsuite-nlp/linalg/gemmt.hpp"

#include <numeric>

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "proxnlp/context.hpp"
#include "proxsuite-nlp/context.hpp"
#include "./block-ldlt.hpp"

namespace proxnlp {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/// @copyright Copyright (C) 2023 LAAS-CNRS, INRIA
#pragma once

#include "proxnlp/linalg/block-kind.hpp"
#include "proxnlp/math.hpp"
#include "proxnlp/linalg/gemmt.hpp"
#include "proxsuite-nlp/linalg/block-kind.hpp"
#include "proxsuite-nlp/math.hpp"
#include "proxsuite-nlp/linalg/gemmt.hpp"

namespace proxnlp {
namespace linalg {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/// @copyright Copyright (C) 2022-2023 LAAS-CNRS, INRIA
#pragma once

#include "proxnlp/linalg/ldlt-base.hpp"
#include "proxsuite-nlp/linalg/ldlt-base.hpp"

namespace proxnlp {
namespace linalg {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// @copyright Copyright (C) 2022 LAAS-CNRS, INRIA
#pragma once

#include "proxnlp/linalg/block-kind.hpp"
#include "proxsuite-nlp/linalg/block-kind.hpp"

namespace proxnlp {
namespace linalg {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
/// @copyright Copyright (C) 2022-2023 LAAS-CNRS, INRIA
#pragma once

#include "proxnlp/math.hpp"
#include "proxnlp/exceptions.hpp"
#include "proxnlp/macros.hpp"
#include "proxsuite-nlp/math.hpp"
#include "proxsuite-nlp/exceptions.hpp"
#include "proxsuite-nlp/macros.hpp"

#include <Eigen/Cholesky>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include <proxsuite/linalg/dense/ldlt.hpp>

#include "proxnlp/linalg/ldlt-base.hpp"
#include "proxsuite-nlp/linalg/ldlt-base.hpp"

namespace {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/// @brief Implements a basic Armijo back-tracking strategy.
#pragma once

#include "proxnlp/linesearch-base.hpp"
#include "proxnlp/exceptions.hpp"
#include "proxsuite-nlp/linesearch-base.hpp"
#include "proxsuite-nlp/exceptions.hpp"

#include <Eigen/QR>

Expand Down
Loading

0 comments on commit 6b0fb3a

Please sign in to comment.