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.