Re: [go-nuts] does gonum insist on row-major?

2023-08-26 Thread 'Dan Kortschak' via golang-nuts
On Sat, 2023-08-26 at 07:28 -0700, Brian Candler wrote: > Could you explain the comment "all of Go is cm"? > https://go.dev/play/p/tDJiSTqsiSC > Sorry, that was a typo, should read "all of Go is rm" (what is there is inconsistent with everything else I wrote). -- You received this message

Re: [go-nuts] does gonum insist on row-major?

2023-08-26 Thread Brian Candler
Could you explain the comment "all of Go is cm"? https://go.dev/play/p/tDJiSTqsiSC On Saturday, 26 August 2023 at 14:02:34 UTC+1 Dan Kortschak wrote: > On Sat, 2023-08-26 at 13:45 +0100, Jason E. Aten wrote: > > ah... there is documentation, it is just buried... > > > >

Re: [go-nuts] does gonum insist on row-major?

2023-08-26 Thread 'Dan Kortschak' via golang-nuts
On Sat, 2023-08-26 at 13:45 +0100, Jason E. Aten wrote: > ah... there is documentation, it is just buried... > > https://pkg.go.dev/gonum.org/v1/gonum/mat#section-readme > > "All matrices are stored in row-major format and users should > consider this when expressing matrix arithmetic to ensure

Re: [go-nuts] does gonum insist on row-major?

2023-08-26 Thread Jason E. Aten
ah... there is documentation, it is just buried... https://pkg.go.dev/gonum.org/v1/gonum/mat#section-readme "All matrices are stored in row-major format and users should consider this when expressing matrix arithmetic to ensure optimal performance." Seems odd not to allow both; since this is

[go-nuts] does gonum insist on row-major?

2023-08-26 Thread Jason E. Aten
I do alot of stats/numerical stuff but I haven't tried gonum until now. Yesterday I went to port a bunch of C code that uses BLAS/LAPACK into Go, and thought I'd try it (Gonum) out. Now the logic is the original code is very hairy, and does delicate operations like a bunch of QR