mirror of
https://github.com/gonum/gonum.git
synced 2025-10-09 17:10:16 +08:00
Changed ApplyFunc to Apply, fixed Cumsum example
This commit is contained in:
@@ -110,7 +110,7 @@ func ExampleCumsum() {
|
||||
s := []float64{1, -2, 3, -4}
|
||||
dst := make([]float64, len(s))
|
||||
|
||||
Cumprod(dst, s)
|
||||
Cumsum(dst, s)
|
||||
|
||||
fmt.Println("dst = ", dst)
|
||||
fmt.Println("s = ", s)
|
||||
|
Reference in New Issue
Block a user