summaryrefslogtreecommitdiffstats
path: root/example.cc
diff options
context:
space:
mode:
Diffstat (limited to 'example.cc')
-rw-r--r--example.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/example.cc b/example.cc
index 51bd9a2..c48ef67 100644
--- a/example.cc
+++ b/example.cc
@@ -13,22 +13,22 @@ int main(int argc, char** argv)
{
// Declare a double precision vector with an architecture-dependent
// number of elements
- double_vec x;
+ float64_vec x;
// Set each element separately. This is inefficient and should be
// avoided if possible, but we want to demonstrate it here anyway.
- for (int i=0; i<double_vec::size; ++i) x.set_elt(i, double(i));
- double_vec y = x + double_vec(1.0);
+ for (int i=0; i<float64_vec::size; ++i) x.set_elt(i, double(i));
+ float64_vec y = x + float64_vec(1.0);
y = sqrt(y);
- double_vec z = log(y);
+ float64_vec z = log(y);
// Boolean vectors are closely related to either double or float
// vectors, thus we need to make a distinction
- bool_double_vec b = x < y;
+ bool64_vec b = x < y;
// Integer vectors are closely related to either double or float,
// thus we need to make a distinction -- there is "long_vec"
- // corresponding to "double_vec", and there is "int_vec"
+ // corresponding to "float64_vec", and there is "int_vec"
// correpsonding to "float_vec".
- long_vec i = convert_int(y);
+ int64_vec i = convert_int(y);
cout << "x=" << x << "\n";
cout << "y=" << y << "\n";
OpenPOWER on IntegriCloud