Re: [racket-users] calculations with arrays

2020-11-18 Thread Tim Meehan
Hello and thanks for the reply. I found your math/matrix library earlier this 
morning. That does look like it does most of what I need.

I’m looking to convert some Python scripts that load in data, process it with 
NumPy and plot (SVG, PDF, etc) with Matplotlib. I wanted to do it in a 
natural-looking Racket-y way.

Some of the datasets are large enough that speed might be a concern. Does that 
mean typed Racket? I don’t mind learning, but I’m dragging along some folks 
that are newer to Racket than I am.

Thanks again 

> On Nov 18, 2020, at 08:23, Jens Axel Søgaard  wrote:
> 
> 
>> Den ons. 18. nov. 2020 kl. 14.15 skrev Tim Meehan :
> 
>> Is there a way to use Racket vectors similarly to how one might use NumPy?
>> (Or are vectors even the right thing to use?)
> 
> If you are after numerical calculations for mxn matrices, then look at 
> `flomat`
> which uses the same underlying C/Fortran library that NumPy uses.
> 
> https://docs.racket-lang.org/manual-flomat/index.html
> 
> If you need rrays with more dimensions than 2 use `math/array`.
> 
> If you need simple computation of 1-dimensional data, you can use
> standard Racket vectors (or flomats or arrays).
> 
> /Jens Axel
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/AD53BCDD-DA52-4579-B3B0-B07D27CEAE15%40gmail.com.


Re: [racket-users] calculations with arrays

2020-11-18 Thread Jens Axel Søgaard
Den ons. 18. nov. 2020 kl. 14.15 skrev Tim Meehan :

> Is there a way to use Racket vectors similarly to how one might use NumPy?
> (Or are vectors even the right thing to use?)
>

If you are after numerical calculations for mxn matrices, then look at
`flomat`
which uses the same underlying C/Fortran library that NumPy uses.

https://docs.racket-lang.org/manual-flomat/index.html

If you need rrays with more dimensions than 2 use `math/array`.

If you need simple computation of 1-dimensional data, you can use
standard Racket vectors (or flomats or arrays).

/Jens Axel

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CABefVgxpKzJQj2HuSNDhYVrBPy2E%2BhUW7u4b%2BeC%2BkJhc4JoC9Q%40mail.gmail.com.


[racket-users] calculations with arrays

2020-11-18 Thread Tim Meehan
Is there a way to use Racket vectors similarly to how one might use NumPy?
(Or are vectors even the right thing to use?)

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CACgrOxKorH1ZRruxpE1RQTTYxNBCAOYp8bEHNGVtA9a2AOCG3w%40mail.gmail.com.