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

New array data-type #1

Merged
merged 4 commits into from
Feb 7, 2017
Merged

New array data-type #1

merged 4 commits into from
Feb 7, 2017

Conversation

zerothi
Copy link
Member

@zerothi zerothi commented Feb 7, 2017

This new data type for arrays is much more flexible in that any N-D array may be contained in a simple class.

Instead of having two classes for each array-dimension type we
now have a single array which makes everything MUCH easier.

Indeed the implementations are also much simpler to work with.
To utilize the new method one may simply do:

  num = require "flos.num"

and do
  a = num.Array( 2, 4 )
or
  a = num.Array( 2 )

Nearly all mathematical operations are present with the limitations of
dot products of more than 2 dimension arrays.

Signed-off-by: Nick Papior <nickpapior@gmail.com>
Now everything is using the new Array notation with much clearer
intent and usage. I have checked:
 relax_geometry_*
 relax_cell.lua

an everything seems to work seemlessly.

I need to double check relax_cell_geometry, apparently it does not
fully work as the initial one...?

Signed-off-by: Nick Papior <nickpapior@gmail.com>
Signed-off-by: Nick Papior <nickpapior@gmail.com>
Signed-off-by: Nick Papior <nickpapior@gmail.com>
@zerothi zerothi self-assigned this Feb 7, 2017
@zerothi zerothi merged commit 038e95d into master Feb 7, 2017
@zerothi zerothi deleted the array branch February 7, 2017 20:30
@rezabma rezabma mentioned this pull request Jun 9, 2019
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.

None yet

1 participant