9 #ifndef IMPDOMINO_SLICE_H
10 #define IMPDOMINO_SLICE_H
12 #include <IMP/domino/domino_config.h>
22 IMPDOMINO_BEGIN_NAMESPACE
31 Ints ret(inner.size());
32 for (
unsigned int i=0; i< inner.size(); ++i) {
33 for (
unsigned int j=0; j< outer.size(); ++j) {
34 if (inner[i]==outer[j]) {
47 for (
unsigned int i=0; i< size(); ++i) {
48 ret[i]=a[operator[](i)];
53 ParticlesTemp ret(size());
54 for (
unsigned int i=0; i< size(); ++i) {
55 ret[i]=a[operator[](i)];
70 "Inner and outer are switched");
71 for (
unsigned int i=0; i< excluded.size(); ++i) {
76 return Slice(outer, inner);
79 IMPDOMINO_END_NAMESPACE