#include <vector>
#include <gudhi/Simplex_tree.h>
struct RU_options : Default_options<Column_types::INTRUSIVE_LIST, true>
{
static const bool has_column_pairings = true;
static const bool can_retrieve_representative_cycles = true;
};
struct Chain_options : Default_options<Column_types::INTRUSIVE_LIST, true>
{
static const bool has_column_pairings = true;
static const bool is_of_boundary_type = false;
};
std::vector<std::vector<int> > simplices = {
{0},
{1},
{2},
{3},
{4},
{5},
{6},
{2, 3},
{4, 5},
{0, 2},
{0, 1},
{1, 3},
{1, 2},
{1, 2, 3},
{0, 1, 2},
{5, 6},
{2, 4},
{4, 6},
{4, 5, 6},
{3, 6}
};
for (unsigned int i = 0; i < simplices.size(); ++i){
}
}
template <class Column>
void print_column(Column& col, unsigned int num, unsigned int size) {
std::cout << "col " << num << ": ";
if (num < 10) std::cout << " ";
for (const auto& e : col.get_content(size)) {
if (e == 0u)
std::cout << "- ";
else
std::cout << e << " ";
}
std::cout << "\n";
}
std::cout << "Base_matrix:\n";
for (unsigned int i = 0; i < size; ++i) {
}
std::cout << "\n";
}
void print_matrix(
const Chain_matrix& cm,
unsigned int size){
std::cout << "Chain_matrix:\n";
for (unsigned int i = 0; i < size; ++i) {
}
std::cout << "\n";
}
void print_matrix(
RU_matrix& rum,
unsigned int size){
std::cout << "RU_matrix:\n";
std::cout << "R:\n";
for (unsigned int i = 0; i < size; ++i) {
}
std::cout << "\n";
std::cout << "U:\n";
for (unsigned int i = 0; i < size; ++i) {
}
std::cout << "\n";
}
int main() {
build_simplex_tree(st);
unsigned int id = 0;
std::vector<unsigned int> boundary;
boundary.push_back(st.
key(b));
}
std::sort(boundary.begin(), boundary.end());
}
print_matrix(bm, size);
print_matrix(rum, size);
print_matrix(cm, size);
}
Simplex Tree data structure for representing simplicial complexes.
Definition: Simplex_tree.h:95
Filtration_simplex_range const & filtration_simplex_range(Indexing_tag=Indexing_tag())
Returns a range over the simplices of the simplicial complex, in the order of the filtration.
Definition: Simplex_tree.h:338
static Simplex_key key(Simplex_handle sh)
Returns the key associated to a simplex.
Definition: Simplex_tree.h:597
std::pair< Simplex_handle, bool > insert_simplex(const InputVertexRange &simplex, Filtration_value filtration=0)
Insert a simplex, represented by a range of Vertex_handles, in the simplicial complex.
Definition: Simplex_tree.h:913
void assign_key(Simplex_handle sh, Simplex_key key)
Assign a value 'key' to the key of the simplex represented by the Simplex_handle 'sh'.
Definition: Simplex_tree.h:1009
Boundary_simplex_range boundary_simplex_range(SimplexHandle sh)
Returns a range over the simplices of the boundary of a simplex.
Definition: Simplex_tree.h:370
size_t num_simplices()
Returns the number of simplices in the simplex_tree.
Definition: Simplex_tree.h:664
Data structure for matrices, and in particular thought for matrices representing filtered complexes i...
Definition: matrix.h:143
returned_column_type & get_column(index columnIndex)
Returns the column at the given MatIdx index. For RU matrices, is equivalent to get_column(columnInde...
Definition: matrix.h:1609
insertion_return_type insert_boundary(const Boundary_type &boundary, dimension_type dim=-1)
Inserts at the end of the matrix a new ordered column corresponding to the given boundary....
Definition: matrix.h:1572
Column_types
List of column types.
Definition: persistence_matrix_options.h:30
Contains Gudhi::persistence_matrix::Matrix class.
Contains the options for the matrix template.
Default option structure for Matrix class. See the PersistenceMatrixOptions concept for a more detail...
Definition: persistence_matrix_options.h:77