--
You received this message because you are subscribed to the Google Groups "gonum-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gonum-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
*mat64.Dense is a mat64.Scaler. If you want it in pace, just call Scale. If you want it not in place clone the matrix first.otherwise, I have to do this:
// matrix m * float64 a
func mulMatrixVar(m *mat64.Dense, a float64) (*mat64.Dense) {
mm, nn := m.Dims()
arr := make([]float64, mm*nn)
for i := 0; i < mm; i++ {
for j := 0; j < nn; j++ {
arr[i*mm + j] = a * m.At(i, j)