Vector Class Discussion

Please add fabs()
Author: Agner Date: 2014-10-19 10:56
The vector class library was never intended to make vector versions of every function in the C++ standard. The vector classes don't have implicit type conversions between different integer sizes, between integer and float, between float and double, etc. anyway. It is intended to make code faster and should not allow implicit conversions or other functions that would make bad performance.

If you need a particular function, you may define it yourself, e.g.

static inline Vec8f fabs(Vec8i const & x) {
    return abs(to_float(x));
}
 
thread Please add fabs() new - Ilja Honkonen - 2014-10-19
last replythread Please add fabs() - Agner - 2014-10-19
last replythread Please add fabs() new - Ilja Honkonen - 2014-10-19
last reply Please add fabs() new - Agner - 2014-10-19