/* Shorthand for the type of this vector: */
typedef vector<Element,generator_type> vector_type;
+ /* The vector coordinate type: */
+ typedef Element coordinate_type;
+
/* For integration into the expression template code: */
typedef vector_type expr_type;
typedef cml::et::assignable_tag assignable_tag;
+ public:
+
+ /** Static constant containing the vector's space dimension. */
+ enum { dimension = Size };
+
+
public:
/** Return square of the length. */
}
}
+ /** Return a subvector by removing element i.
+ *
+ * @internal This is horribly inefficient...
+ */
+ subvector_type subvector(size_t i) const {
+ subvector_type s;
+ for(size_t m = 0, n = 0; m < this->size(); ++ m)
+ if(m != i) s[n++] = (*this)[m];
+ return s;
+ };
+
public: