1 // Copyright ©2016 The Gonum Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
11 func ScalUnitary(alpha float32, x []float32) {
18 // for i, v := range x {
21 func ScalUnitaryTo(dst []float32, alpha float32, x []float32) {
29 // for i := 0; i < int(n); i++ {
33 func ScalInc(alpha float32, x []float32, n, incX uintptr) {
35 for i := 0; i < int(n); i++ {
42 // var idst, ix uintptr
43 // for i := 0; i < int(n); i++ {
44 // dst[idst] = alpha * x[ix]
48 func ScalIncTo(dst []float32, incDst uintptr, alpha float32, x []float32, n, incX uintptr) {
50 for i := 0; i < int(n); i++ {
51 dst[idst] = alpha * x[ix]