From 43d26c25c6bbdefcca43278de42bf0ae524adb72 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Mon, 4 Feb 2013 23:51:37 -0500 Subject: Provide intvec_t::iota() --- vec_float.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vec_float.h') 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; } -- cgit v1.1