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

Improved api and performance #13

Merged
merged 4 commits into from
Nov 11, 2020
Merged

Conversation

quartercastle
Copy link
Owner

@quartercastle quartercastle commented Aug 23, 2020

All package level functions regarding vector arithmetic has been removed. Instead methods should be called on a vector which are changed to be immutable by default.

The concept of an UnsafeVector as been introduced, it follows the same API as a normal Vector, the difference is that an UnsafeVector does all arithmetic operations in-place and shall therefore be used with care, hence the name UnsafeVector.

a, b := Vector{1,2}, Vector{2,4}
vector.In(a).Add(b)

All package level functions regarding vector arithmetic has been
removed. Instead methods should be called on a vector which now are
immutable by default. The concept of an UnsafeVector as been introduced
it follows the same API as a normal Vector, the difference is that an
UnsafeVector does all arithmetic operations in-place and shall therefore
be used with care, hence the name UnsafeVector.
@quartercastle quartercastle merged commit 059d519 into master Nov 11, 2020
@quartercastle quartercastle deleted the improved-api-and-performance branch November 11, 2020 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant