Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vector Functions #6

Open
henneberger opened this issue Oct 21, 2024 · 0 comments
Open

Vector Functions #6

henneberger opened this issue Oct 21, 2024 · 0 comments

Comments

@henneberger
Copy link

Vector functions:

Vector should implement its own type so we know how to do translation functions for other engines.

  • vector_add: Performs element-wise addition of vectors.
  • vector_subtract: Performs element-wise subtraction of vectors.
  • dot_product: Computes the dot product of two vectors.
  • cross_product: Computes the cross product of two vectors.
  • scalar_multiply: Multiplies a vector by a scalar.
  • vector_norm: Computes the Euclidean norm (magnitude) of a vector.
  • unit_vector: Normalizes a vector to have a magnitude of one.
  • vector_negate: Computes the negation of a vector by changing its direction.
  • vector_dimension: Returns the dimension (number of elements) of a vector.
  • vector_entry: Retrieves a specific entry from a vector by index.
  • vector_equals: Compares vectors for equality.
  • vector_hash: Generates a hash code for a vector.
  • vector_multiply: Performs element-by-element multiplication. Check same dimensionality
  • vector_divide: Performs element-by-element division. Check same dimensionality
@henneberger henneberger converted this from a draft issue Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

1 participant