(ctx File)
| 67 | } |
| 68 | |
| 69 | func Scale(ctx File) { |
| 70 | ctx.Func("ScalIncUnitaryTo(dst []$Type, incdst uintptr, alpha $Type, xs []$Type, n, incx uintptr)", |
| 71 | Iterate{ |
| 72 | Ranges: []It{ |
| 73 | Range("i", 0, "n"), |
| 74 | Slice("dst", 0, "incdst"), |
| 75 | Slice("xs", 0, "incx"), |
| 76 | }, |
| 77 | For: "$dst = alpha * $xs", |
| 78 | }) |
| 79 | } |