Skip to content

Vector math operations #32

@kiliakis

Description

@kiliakis

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions