Skip to content

Commit

Permalink
comply with windows compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLapous committed Nov 26, 2024
1 parent d9204f6 commit 0f38adc
Show file tree
Hide file tree
Showing 17 changed files with 61 additions and 34 deletions.
6 changes: 4 additions & 2 deletions multipers/gudhi/Simplex_tree_multi_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
#include <utility> // std::pair
#include <vector>

namespace Gudhi::multiparameter::python_interface {
namespace Gudhi {
namespace multiparameter {
namespace python_interface {

using interface_std =
Simplex_tree<Simplex_tree_options_for_python>; // Interface not necessary
Expand Down Expand Up @@ -555,4 +557,4 @@ using Simplex_tree_multi_skeleton_iterator = typename
template <typename Filtration>
using Simplex_tree_multi_boundary_iterator = typename
Simplex_tree_multi_interface<Filtration>::Boundary_simplex_iterator;
} // namespace Gudhi::multiparameter::python_interface
}}} // namespace Gudhi::multiparameter::python_interface
5 changes: 3 additions & 2 deletions multipers/gudhi/gudhi/Multi_critical_filtration.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
#include <gudhi/Debug_utils.h>
#include <gudhi/One_critical_filtration.h>

namespace Gudhi::multi_filtration {
namespace Gudhi {
namespace multi_filtration {

/**
* @class Multi_critical_filtration multi_critical_filtration.h gudhi/multi_critical_filtration.h
Expand Down Expand Up @@ -996,7 +997,7 @@ class Multi_critical_filtration {
}
};

} // namespace Gudhi::multi_filtration
}} // namespace Gudhi::multi_filtration

namespace std {

Expand Down
5 changes: 3 additions & 2 deletions multipers/gudhi/gudhi/Multi_persistence/Box.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
#include <gudhi/Debug_utils.h>
#include <gudhi/One_critical_filtration.h>

namespace Gudhi::multi_persistence {
namespace Gudhi{
namespace multi_persistence {

/**
* @class Box Box.h gudhi/Multi_persistence/Box.h
Expand Down Expand Up @@ -165,6 +166,6 @@ class Box {
Point upperCorner_; /**< Greatest of defining corners. */
};

} // namespace Gudhi::multi_persistence
}} // namespace Gudhi::multi_persistence

#endif // BOX_H_INCLUDED
5 changes: 3 additions & 2 deletions multipers/gudhi/gudhi/Multi_persistence/Line.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
#include <gudhi/Multi_critical_filtration.h>
#include <gudhi/Multi_persistence/Box.h>

namespace Gudhi::multi_persistence {
namespace Gudhi{
namespace multi_persistence {

/**
* @class Line Line.h gudhi/Multi_persistence/Line.h
Expand Down Expand Up @@ -276,6 +277,6 @@ class Line {
}
};

} // namespace Gudhi::multi_persistence
}} // namespace Gudhi::multi_persistence

#endif // LINE_FILTRATION_TRANSLATION_H_INCLUDED
5 changes: 3 additions & 2 deletions multipers/gudhi/gudhi/One_critical_filtration.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@

#include <gudhi/Debug_utils.h>

namespace Gudhi::multi_filtration {
namespace Gudhi {
namespace multi_filtration {

/**
* @class One_critical_filtration one_critical_filtration.h gudhi/one_critical_filtration.h
Expand Down Expand Up @@ -1391,7 +1392,7 @@ class One_critical_filtration : public std::vector<T> {
}
};

} // namespace Gudhi::multi_filtration
}} // namespace Gudhi::multi_filtration

namespace std {

Expand Down
5 changes: 3 additions & 2 deletions multipers/gudhi/gudhi/Simplex_tree_multi.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
#include <algorithm>
#include <gudhi/Simplex_tree.h>

namespace Gudhi::multi_persistence {
namespace Gudhi {
namespace multi_persistence {

/** Model of SimplexTreeOptions, with a multiparameter filtration.
* \ingroup multi_persistence
Expand Down Expand Up @@ -157,6 +158,6 @@ void linear_projection(simplextree_std &st, simplextree_multi &st_multi,
}
}

} // namespace Gudhi::multi_persistence
}} // namespace Gudhi::multi_persistence

#endif // SIMPLEX_TREE_MULTI_H_
6 changes: 4 additions & 2 deletions multipers/gudhi/mma_interface_coh.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
#include <gudhi/persistence_interval.h>
#include <gudhi/Persistent_cohomology.h>

namespace Gudhi::multiparameter::interface {
namespace Gudhi {
namespace multiparameter {
namespace interface {

template <class Structure>
class Boundary_matrix_as_filtered_complex_for_coh {
Expand Down Expand Up @@ -248,6 +250,6 @@ class Persistence_backend_cohomology {
MatrixComplex matrix_;
};

} // namespace Gudhi::multiparameter::interface
}}} // namespace Gudhi::multiparameter::interface

#endif // MMA_INTERFACE_COH_H
7 changes: 5 additions & 2 deletions multipers/gudhi/mma_interface_h0.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@

#include <naive_merge_tree.h>

namespace Gudhi::multiparameter::interface {
namespace Gudhi {
namespace multiparameter {
namespace interface {

template <class Boundary_matrix_type> class Persistence_backend_h0 {
public:
using pos_index = int;
Expand Down Expand Up @@ -224,5 +227,5 @@ template <class Boundary_matrix_type> class Persistence_backend_h0 {
std::vector<std::size_t> *permutation_;
std::vector<std::size_t> permutationInv_;
};
} // namespace Gudhi::multiparameter::interface
}}} // namespace Gudhi::multiparameter::interface
#endif // MMA_INTERFACE_H0_H
6 changes: 4 additions & 2 deletions multipers/gudhi/mma_interface_matrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
#include <gudhi/Matrix.h>
#include <gudhi/persistence_matrix_options.h>

namespace Gudhi::multiparameter::interface {
namespace Gudhi {
namespace multiparameter {
namespace interface {

template <Gudhi::persistence_matrix::Column_types column_type = Gudhi::persistence_matrix::Column_types::INTRUSIVE_SET>
struct Multi_persistence_options : Gudhi::persistence_matrix::Default_options<column_type, true> {
Expand Down Expand Up @@ -276,5 +278,5 @@ class Persistence_backend_matrix {
std::vector<Index> *permutation_;
};

} // namespace Gudhi::multiparameter::interface
}}} // namespace Gudhi::multiparameter::interface
#endif // MMA_INTERFACE_MATRIX_H
6 changes: 4 additions & 2 deletions multipers/gudhi/truc.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
#include <type_traits> //std::invoke_result
#include "scc_io.h"

namespace Gudhi::multiparameter::interface {
namespace Gudhi {
namespace multiparameter {
namespace interface {
using index_type = std::uint32_t;

class PresentationStructure {
Expand Down Expand Up @@ -878,4 +880,4 @@ class Truc {

}; // class Truc

} // namespace Gudhi::multiparameter::interface
}}} // namespace Gudhi::multiparameter::interface
6 changes: 4 additions & 2 deletions multipers/multi_parameter_rank_invariant/diff_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
#include "Simplex_tree_multi_interface.h"
#include <vector>

namespace Gudhi::multiparameter::differentiation {
namespace Gudhi {
namespace multiparameter {
namespace differentiation {

using signed_measure_indices = std::vector<std::vector<int32_t>>;
template <typename Filtration>
Expand Down Expand Up @@ -88,4 +90,4 @@ get_signed_measure_indices(
return {out_indices, out_unmapped_values}; // TODO return a ptr for python
}

} // namespace Gudhi::multiparameter::differentiation
}}} // namespace Gudhi::multiparameter::differentiation
6 changes: 4 additions & 2 deletions multipers/multi_parameter_rank_invariant/function_rips.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
#include <oneapi/tbb/enumerable_thread_specific.h>
#include <oneapi/tbb/parallel_for.h>

namespace Gudhi::multiparameter::function_rips {
namespace Gudhi {
namespace multiparameter {
namespace function_rips {

using value_type = typename python_interface::interface_std::Filtration_value;
using _multifiltration = typename Gudhi::multi_filtration::One_critical_filtration<value_type>;
Expand Down Expand Up @@ -317,4 +319,4 @@ compute_function_rips_signed_measure_python(
return container.sparsify();
}

} // namespace Gudhi::multiparameter::function_rips
}}} // namespace Gudhi::multiparameter::function_rips
6 changes: 4 additions & 2 deletions multipers/multi_parameter_rank_invariant/hilbert_function.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
#include <utility> // std::pair
#include <vector>

namespace Gudhi::multiparameter::hilbert_function {
namespace Gudhi {
namespace multiparameter {
namespace hilbert_function {

// TODO : this function is ugly
template <typename Filtration, typename indices_type>
Expand Down Expand Up @@ -758,4 +760,4 @@ std::pair<std::vector<std::vector<indices_type>>, std::vector<dtype>> get_hilber
}
return raw_signed_measure;
}
} // namespace Gudhi::multiparameter::hilbert_function
}}} // namespace Gudhi::multiparameter::hilbert_function
5 changes: 3 additions & 2 deletions multipers/multi_parameter_rank_invariant/persistence_slices.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
#include <gudhi/Simplex_tree_multi.h>
#include <gudhi/Multi_persistence/Box.h>

namespace Gudhi::multiparameter {
namespace Gudhi {
namespace multiparameter {

struct Simplex_tree_float { // smaller simplextrees
typedef linear_indexing_tag Indexing_tag;
Expand Down Expand Up @@ -144,4 +145,4 @@ inline simplextree_like collapse_edges(simplextree_like &st, int num_collapses)
return collapsed_stree;
}

} // namespace Gudhi::multiparameter
}} // namespace Gudhi::multiparameter
6 changes: 4 additions & 2 deletions multipers/multi_parameter_rank_invariant/rank_invariant.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
#include <utility> // std::pair
#include <vector>

namespace Gudhi::multiparameter::rank_invariant {
namespace Gudhi {
namespace multiparameter {
namespace rank_invariant {
using Index = interface::index_type;

// using Elbow = std::vector<std::pair<>>;grid
Expand Down Expand Up @@ -357,4 +359,4 @@ std::pair<std::vector<std::vector<indices_type>>, std::vector<dtype>> compute_ra
return raw_signed_measure;
}

} // namespace Gudhi::multiparameter::rank_invariant
}}} // namespace Gudhi::multiparameter::rank_invariant
6 changes: 4 additions & 2 deletions multipers/multiparameter_module_approximation/approximation.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
#include <tbb/parallel_for.h>
#include <tensor/tensor.h>

namespace Gudhi::multiparameter::mma {
namespace Gudhi {
namespace multiparameter {
namespace mma {

using Debug::Timer;
using Gudhi::multi_persistence::Box;
Expand Down Expand Up @@ -2288,6 +2290,6 @@ inline void Summand<value_type>::_clean(std::vector<filtration_type> &list, bool
list.end());
}

} // namespace Gudhi::multiparameter::mma
}}} // namespace Gudhi::multiparameter::mma

#endif // APPR
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
Options.fast_fail = True
# Options.warning_errors = True

os.system("mkdir ./build/")
os.system("mkdir ./build/tmp")
os.system("mkdir build/")
os.system("mkdir build/tmp")


def was_modified(file):
Expand Down

0 comments on commit 0f38adc

Please sign in to comment.