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... > > > > 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 usually very important for > > perf. > > The original Cgo code did allow both. The maintenance burden or > providing both for the Go implementation would have been far too > onerous, so the column-major implementation option was remove from the > Cgo wrapper for parity. > > I don't think the docs are buried; that is the first place people will > look in general. > > FWIW The choice between rm and cm is difficult; all of Go is cm. All of > Fortran is cm (also any GPU code). We've had this discussion internally > and probably if we did it again, we might have chosen cm, but then we'd > get people complaining that they can't represent matrices in source > easily. > > Dan > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/5782b6e8-7e1c-4a7e-8982-6f39b217b866n%40googlegroups.com.