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.
5 //+build !amd64 noasm appengine
13 func ScalUnitary(alpha float64, x []float64) {
20 // for i, v := range x {
23 func ScalUnitaryTo(dst []float64, alpha float64, x []float64) {
31 // for i := 0; i < int(n); i++ {
35 func ScalInc(alpha float64, x []float64, n, incX uintptr) {
37 for i := 0; i < int(n); i++ {
44 // var idst, ix uintptr
45 // for i := 0; i < int(n); i++ {
46 // dst[idst] = alpha * x[ix]
50 func ScalIncTo(dst []float64, incDst uintptr, alpha float64, x []float64, n, incX uintptr) {
52 for i := 0; i < int(n); i++ {
53 dst[idst] = alpha * x[ix]