stsievert / swix

Swift Matrix Library
http://docs.stsievert.com/swix/
MIT License
593 stars 54 forks source link

The ndarray type is not n-dimensional but 1-dimensional #27

Closed Rodmore closed 8 years ago

Rodmore commented 8 years ago

Due to this all the ndarray and some of the matrix operations don't have the expected behavior similar to NumPy's.

stsievert commented 8 years ago

It can not be n-dimensional; that seemed like too much work. In the field I specialize in, I only see vectors and matrices. In swix, I call these "ndarray" and "matrix" respecively.

Is it easy to covert from an ndarray to a matrix? I forgot the exact interface.

stsievert commented 8 years ago

Clarification: I chose "ndarray" because an array with n components is n-dimensional. Maybe a renaming of "ndarray" to "vector" is in order...

stsievert commented 8 years ago

I'm reopening this because this naming convention is confusing. I will refactor to address this issue.

stsievert commented 8 years ago

I renamed ndarray to vector with the command find swix/swix/swix -type f | xargs sed -i '' 's/ndarray/vector/g'.