VCV Rack API v2
Loading...
Searching...
No Matches
rack::simd::Vector< TYPE, SIZE > Struct Template Reference

Generic class for vector types. More...

Detailed Description

template<typename TYPE, int SIZE>
struct rack::simd::Vector< TYPE, SIZE >

Generic class for vector types.

This class is designed to be used just like you use scalars, with extra features for handling bitwise logic, conditions, loading, and storing.

Example:

float a[4], b[4];
float_4 a = float_4::load(in);
float_4 b = 2.f * a / (1 - a);
b *= sin(2 * M_PI * a);
b.store(out);

The documentation for this struct was generated from the following file: