Lines Matching defs:map
215 // 2) use map() to apply a scalar function lane-wise;
516 // TODO: implement with map()?
566 // Call map(fn, x) for a vector with fn() applied to each lane of x, { fn(x[0]), fn(x[1]), ... },
567 // or map(fn, x,y) for a vector of fn(x[i], y[i]), etc.
570 SI auto map(std::index_sequence<I...>,
587 auto map(Fn&& fn, const Vec<N,T>& first, const Rest&... rest) {
589 return map(std::make_index_sequence<N>{}, fn, first,rest...);
592 SIN Vec<N,float> ceil(const Vec<N,float>& x) { return map( ceilf, x); }
593 SIN Vec<N,float> floor(const Vec<N,float>& x) { return map(floorf, x); }
594 SIN Vec<N,float> trunc(const Vec<N,float>& x) { return map(truncf, x); }
595 SIN Vec<N,float> round(const Vec<N,float>& x) { return map(roundf, x); }
596 SIN Vec<N,float> sqrt(const Vec<N,float>& x) { return map( sqrtf, x); }
597 SIN Vec<N,float> abs(const Vec<N,float>& x) { return map( fabsf, x); }
601 // I don't understand why Clang's codegen is terrible if we write map(fmaf, x,y,z) directly.
603 return map(fn, x,y,z);