mirror of
https://github.com/gonum/gonum.git
synced 2025-10-13 02:43:59 +08:00
all: run gofmt and generate all packages
Changes made in dsp/fourier/internal/fftpack break the formatting used there, so these are reverted. There will be complaints in CI. [git-generate] gofmt -w . go generate gonum.org/v1/gonum/blas go generate gonum.org/v1/gonum/blas/gonum go generate gonum.org/v1/gonum/unit go generate gonum.org/v1/gonum/unit/constant go generate gonum.org/v1/gonum/graph/formats/dot go generate gonum.org/v1/gonum/graph/formats/rdf go generate gonum.org/v1/gonum/stat/card git checkout -- dsp/fourier/internal/fftpack
This commit is contained in:
@@ -777,7 +777,8 @@ func (m *Dense) Apply(fn func(i, j int, v float64) float64, a Matrix) {
|
||||
// RankOne performs a rank-one update to the matrix a with the vectors x and
|
||||
// y, where x and y are treated as column vectors. The result is stored in the
|
||||
// receiver. The Outer method can be used instead of RankOne if a is not needed.
|
||||
// m = a + alpha * x * yᵀ
|
||||
//
|
||||
// m = a + alpha * x * yᵀ
|
||||
func (m *Dense) RankOne(a Matrix, alpha float64, x, y Vector) {
|
||||
ar, ac := a.Dims()
|
||||
if x.Len() != ar {
|
||||
@@ -832,7 +833,9 @@ func (m *Dense) RankOne(a Matrix, alpha float64, x, y Vector) {
|
||||
|
||||
// Outer calculates the outer product of the vectors x and y, where x and y
|
||||
// are treated as column vectors, and stores the result in the receiver.
|
||||
// m = alpha * x * yᵀ
|
||||
//
|
||||
// m = alpha * x * yᵀ
|
||||
//
|
||||
// In order to update an existing matrix, see RankOne.
|
||||
func (m *Dense) Outer(alpha float64, x, y Vector) {
|
||||
r, c := x.Len(), y.Len()
|
||||
|
Reference in New Issue
Block a user