public:
/** The type of this class. */
- typedef simplicial_complex<MAXDIM, IT> simplcompltype;
+ typedef simplicial_complex<MAXDIM, IT> scomplex;
/** Type of indices of simplices. */
typedef IT index_type;
typedef std::vector<IT> order_type;
/** Create a standard order of the complex c, i.e., the identity permutation. */
- simplex_order(const simplcompltype &c) :
+ simplex_order(const scomplex &c) :
c(c) {
reset();
}
}
/** Return the underlying complex. */
- const simplcompltype& get_complex() const {
+ const scomplex& get_complex() const {
return c;
}
}
/** The complex of which we consider a simplex order. */
- const simplcompltype &c;
+ const scomplex &c;
/** The i-th simplex in order is the order[i]-th simplex of the
* complex. 'order' can be seen as a permutation of the
public:
/** The type of the underlying simplicial complex. */
- typedef simplicial_complex<MAXDIM, IT> simplcompltype;
+ typedef simplicial_complex<MAXDIM, IT> scomplex;
/** Type of indices of simplices. */
typedef IT index_type;
/** Type of the simplices of the underlying simplicial complex */
- typedef typename simplcompltype::simplex simplex;
+ typedef typename scomplex::simplex simplex;
/** Type of the order on the underlying simplicial complex */
- typedef typename simplcompltype::simplex_order simplex_order;
+ typedef typename scomplex::simplex_order simplex_order;
/** To every simplex a function value is assigned according to which a
* filtration is considered. This is the value type of the function. */
typedef VT value_type;
/**Create a simplicial function on a given simplicial complex c. Only
* define for the (-1)-dim dummy vertex a value, namely
* get_minusonedim_value().*/
- simplicial_function(simplcompltype &c) :
+ simplicial_function(scomplex &c) :
c(c) {
values.push_back(get_minusonedim_value());
}
}
/** Return the underlying complex. */
- const simplcompltype& get_complex() const {
+ const scomplex& get_complex() const {
return c;
}
values_type values;
/** The complex on which we consider a function. */
- simplcompltype &c;
+ scomplex &c;
};
}
// Create complex and add image
typedef simplicial_function<2, uint32_t, float> sfunction;
- typedef sfunction::simplcompltype scomplex;
+ typedef sfunction::scomplex scomplex;
scomplex s;
sfunction f(s);
add_image_to_simplicialfunction(f, image, width, height);
private:
typedef simplicial_function<3, uint32_t, uint32_t> sfunction;
- typedef sfunction::simplcompltype scomplex;
+ typedef sfunction::scomplex scomplex;
typedef persistence<3, uint32_t> pers;
typedef pers::boundary_matrix bm;
typedef pers::lowestones_matrix lom;
private:
typedef simplicial_function<3, uint32_t, double> sfunction;
- typedef sfunction::simplcompltype scomplex;
+ typedef sfunction::scomplex scomplex;
typedef scomplex::simplex_order::boundary_matrix bm;
bool setupcalled;