|
|
|
|
|
by tuhats
1117 days ago
|
|
I have played around with using @Vector for linear algebra. This removes the need for operator overloading for a vector type, which covers most use cases of operator overloading and I often in fact think is the only legitimate use case. I don't get to use `*` for matrix multiplication, but I have found I do not mind using a function for this. I have only been playing with this in small toy programs that don't to much serious linear algebra and I haven't looked at the asm I am generating with this approach, but I have been enjoying it so far! |
|