diff options
Diffstat (limited to 'vec_float.h')
-rw-r--r-- | vec_float.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vec_float.h b/vec_float.h index 5457ec7..5424b05 100644 --- a/vec_float.h +++ b/vec_float.h @@ -117,6 +117,7 @@ namespace vecmathlib { //intvec(vector_t x): v(x) {} intvec(int_t a): v(a) {} intvec(int_t const* as): v(as[0]) {} + static intvec iota() { return intvec(I(0)); } operator ivector_t() const { return v; } int_t operator[](int n) const { return v; } |