VectorOfElements generateVEOutOfBoundarySafe(const VectorOfElements &a, const VectorOfElements &outVal)
generates Vector of elements wraping the a in order to avoid out of boundary acces with given out of ...
void findNearestDirectionCode(const vector< asl::AVec<>> &directions, VectorOfElements v, VectorOfElements iDir, VectorOfElements scalProduct, ExpressionContainer &k)
generates code for finding nearest direction from given directions set directions