crystal-community / crystal-libraries-needed

A list of libraries that are needed or wanted for the Crystal-Language
141 stars 4 forks source link

A library like Numpy #14

Open johnjansen opened 7 years ago

johnjansen commented 7 years ago

http://www.numpy.org

Neltherion commented 6 years ago

Something like Numpy can considerably widen Crystal's reach and invite scientific communities to the language... It'd be really good if we could use Ruby's syntax while crunching numbers...

drum445 commented 6 years ago

Won't claim it's anywhere near numpy, but I have ported some financial calculations to crystal https://github.com/drum445/financials

christopherzimmerman commented 4 years ago

I have a good start on a library inspired by numpy, it's called bottle. I am still looking for contributors, it's just me currently, but I have an N-Dimensional container implemented, and very powerful numpy features like strided views and broadcasting.

christopherzimmerman commented 4 years ago

@drum445 I went through and took your financial work and added them all as vectorized methods to my library, they worked great! You basically have all of numpys financial methods, so its good to have them. I gave you a shoutout at the top of file, but if you want a link or something to your library just let me know.

If you ever want to add more financial functions I'd also love the PRs!

jkthorne commented 4 years ago

@christopherzimmerman I found bottle looking through crystal libs and have been following it. I dont have a use for it yet but it looks super promising.

aaferrari commented 4 years ago

Another option could be Crystalla but there have been no new commits for three years.

franciscoGPS commented 4 years ago

Here's another called Num.cr Haven't used it myself but seems to do the job.

watzon commented 4 years ago

@franciscoGPS Num is actually bottle, it's just been renamed

jkthorne commented 4 years ago

https://github.com/crystal-data/num.cr/pull/14