src/bench/main.cpp
/** example task. does some random calculations */
example task. does some random calculations
example task . does some random calculations
void example_task()
{
    for(int i = 0; i < block_size; ++i)
    {
        for(int j = 0; j < block_size; ++j)
        {
            auto v = out;
            float angle = dot(v.normalized(), l);
            float dist_sq = (v - l).length_squared();
            v = (v + l * dist_sq * angle);
            v.normalize();
            out = v;
        }
    }
}
void example_task ( ) { for ( int i = 0 ; i < block_size ; ++ i ) { for ( int j = 0 ; j < block_size ; ++ j ) { auto v = out ; float angle = dot ( v . normalized ( ) , l ) ; float dist_sq = ( v - l ) . length_squared ( ) ; v = ( v + l * dist_sq * angle ) ; v . normalize ( ) ; out = v ; } } }
example task.
example task .