0

I want to send a gonum Dense matrix in protobuf. However, I could not find a method to flatten the matrix to []float64. Is there a better way of doing this than retrieving the matrix values row by row.

I know serializing row by row works, but I am looking for a more elegant way of doing this.

Ruomu
  • 27
  • 3
  • "I could not find a method to flatten the Dense matrix to []float64." Where did you look? I found a method by looking at the documentation: https://pkg.go.dev/gonum.org/v1/gonum/mat#pkg-index – rocka2q Dec 12 '22 at 06:47

0 Answers0