Multiply Values in Float Array
sv = fao:mul(faov)
Modify each fao
entry by multiplying.
Parameter | Type | Description |
---|---|---|
faov |
number | Single number |
faov |
object | Second Float Array Object |
Returns | Type | Description |
---|---|---|
sv |
number | Sum of all entries in fao after operation. |
e.g.
local sv = fa1:mul(fa2) -- fa1[idx] = fa1[idx] * fa2[idx]
local sv = fa1:mul(4.56) -- fa1[idx] = fa1[idx] * 4.56