-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Simple vector math operations are available through vector_math.h library. Operations supported:
- vector (+,-, *, /) vector
- vector (+,-,,/) scalar or scalar (+,-,,/) vector
- vector (+,-,*,/)= vector/scalar
- apply_f(vector, op) --> apply unary op to every element of vector and return the result
- apply_f(vector1, vector2, op) --> apply binary op to every pair of elements from vector1, vector2 and return the result
- apply_f_in_place(vector, op) --> apply unary op to every element of vector and store the result back to vector. Returns nothing
- apply_f_in_place(vector1, vector2, op) --> apply binary op to every pair from vecto1, vector2 and store the result back to vector1. Returns nothing