MCPcopy Create free account
hub / github.com/egonelbre/exp / Scale

Function Scale

vector/generate/example.go:69–79  ·  view source on GitHub ↗
(ctx File)

Source from the content-addressed store, hash-verified

67}
68
69func 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}

Callers 1

AllFunction · 0.85

Calls 3

RangeFunction · 0.85
SliceFunction · 0.85
FuncMethod · 0.65

Tested by

no test coverage detected