vsl icon indicating copy to clipboard operation
vsl copied to clipboard

Override operators for all struct types

Open ulises-jeremias opened this issue 4 years ago • 4 comments

We have different types defined as structs in vsl, such as Matrix at vsl.la, among others. Would be good to override missing operators +, -, *, /, %, . . .

ulises-jeremias avatar Jan 06 '21 15:01 ulises-jeremias

@hungrybluedev I'll assign this to you

ulises-jeremias avatar Jan 06 '21 16:01 ulises-jeremias

The first target for this is Matrix. Here's the plan I want to follow:

  • [ ] Add unit tests for all functions of vsl.la written in V.
    • matrix.v - https://github.com/vlang/vsl/pull/35
    • matrix_ops.v - https://github.com/vlang/vsl/pull/38
    • ...
  • [ ] Add operator overload methods based on blas functions.
  • [ ] Add unit tests for newly added functions

hungrybluedev avatar Jan 08 '21 19:01 hungrybluedev

Added #67 to add unit tests for la/vector.v

VinWare avatar Oct 11 '21 16:10 VinWare

@VinWare thanks for your contribution!! I just merged your PR

ulises-jeremias avatar Oct 11 '21 20:10 ulises-jeremias