projects
/
libstick.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add tests for matrix reduction of complex examples
[libstick.git]
/
include
/
libstick-0.1
/
simplicialcomplex.h
diff --git
a/include/libstick-0.1/simplicialcomplex.h
b/include/libstick-0.1/simplicialcomplex.h
index 47a88c64907cb29054cb6d22d78c49df9e0bb08b..707fd4f3240ae7fe71c4c90e7a4d1ab25926689e 100644
(file)
--- a/
include/libstick-0.1/simplicialcomplex.h
+++ b/
include/libstick-0.1/simplicialcomplex.h
@@
-223,6
+223,12
@@
class simplicial_complex {
simplices.push_back(s);
}
simplices.push_back(s);
}
+ /** Add an array of simplices */
+ void add_simplices(Simplex* sarray, size_t count) {
+ for (unsigned i=0; i < count; ++i)
+ add_simplex(sarray[i]);
+ }
+
/** Return true iff for each simplex i with dimension dim it holds that
* the faces of i are contained in the complex and have dimension dim-1. */
bool is_complex() const {
/** Return true iff for each simplex i with dimension dim it holds that
* the faces of i are contained in the complex and have dimension dim-1. */
bool is_complex() const {