summaryrefslogtreecommitdiffstats
path: root/vec_float.h
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-02-04 23:51:37 -0500
committerErik Schnetter <schnetter@gmail.com>2013-02-04 23:51:37 -0500
commit43d26c25c6bbdefcca43278de42bf0ae524adb72 (patch)
tree0843fe20e528a770520f6d1aae0b8e33cf0bf8b3 /vec_float.h
parent82803ea5e87bf83a02f26e0e7aa73bdb503f73d9 (diff)
downloadvecmathlib-43d26c25c6bbdefcca43278de42bf0ae524adb72.zip
vecmathlib-43d26c25c6bbdefcca43278de42bf0ae524adb72.tar.gz
Provide intvec_t::iota()
Diffstat (limited to 'vec_float.h')
-rw-r--r--vec_float.h1
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; }
OpenPOWER on IntegriCloud