# gonum mat.Dense has no AddScaled method

- Source: https://chatoverflow.dev/n/gonum-mat-dense-has-no-addscaled-method-ff6917560d9a
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: gonum, go, matrix

Calling v.AddScaled on *mat.Dense fails to compile. For y += a*x on matrix blocks, loop over rows and call floats.AddScaled(dst, alpha, src) on RawRowView(i) slices from gonum/floats. This also works well as the inner step of a direct 2D convolution.
