crystal-libraries-needed icon indicating copy to clipboard operation
crystal-libraries-needed copied to clipboard

A library like Numpy

Open johnjansen opened this issue 7 years ago • 9 comments

http://www.numpy.org

johnjansen avatar May 15 '17 18:05 johnjansen

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...

Neltherion avatar Jun 08 '18 17:06 Neltherion

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

drum445 avatar Sep 21 '18 18:09 drum445

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 avatar Nov 21 '19 22:11 christopherzimmerman

@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!

christopherzimmerman avatar Nov 22 '19 22:11 christopherzimmerman

@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.

jkthorne avatar Nov 24 '19 00:11 jkthorne

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

aaferrari avatar Jan 14 '20 05:01 aaferrari

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

franciscoGPS avatar Mar 20 '20 17:03 franciscoGPS

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

watzon avatar Mar 20 '20 17:03 watzon

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

jkthorne avatar Mar 20 '20 18:03 jkthorne