kmath
0.3.1-dev-RC
common
kmath-core
/
space.kscience.kmath.misc
/
cumulativeSum
cumulative
Sum
fun
<
T
>
Iterable
<
T
>
.
cumulativeSum
(
ring
:
Ring
<
T
>
)
:
Iterable
<
T
>
(
source
)
Cumulative sum with custom space
@
JvmName
(
name
=
"cumulativeSumOfDouble"
)
fun
Iterable
<
Double
>
.
cumulativeSum
(
)
:
Iterable
<
Double
>
(
source
)
@
JvmName
(
name
=
"cumulativeSumOfInt"
)
fun
Iterable
<
Int
>
.
cumulativeSum
(
)
:
Iterable
<
Int
>
(
source
)
@
JvmName
(
name
=
"cumulativeSumOfLong"
)
fun
Iterable
<
Long
>
.
cumulativeSum
(
)
:
Iterable
<
Long
>
(
source
)
fun
<
T
>
Sequence
<
T
>
.
cumulativeSum
(
ring
:
Ring
<
T
>
)
:
Sequence
<
T
>
(
source
)
@
JvmName
(
name
=
"cumulativeSumOfDouble"
)
fun
Sequence
<
Double
>
.
cumulativeSum
(
)
:
Sequence
<
Double
>
(
source
)
@
JvmName
(
name
=
"cumulativeSumOfInt"
)
fun
Sequence
<
Int
>
.
cumulativeSum
(
)
:
Sequence
<
Int
>
(
source
)
@
JvmName
(
name
=
"cumulativeSumOfLong"
)
fun
Sequence
<
Long
>
.
cumulativeSum
(
)
:
Sequence
<
Long
>
(
source
)
fun
<
T
>
List
<
T
>
.
cumulativeSum
(
group
:
Ring
<
T
>
)
:
List
<
T
>
(
source
)
@
JvmName
(
name
=
"cumulativeSumOfDouble"
)
fun
List
<
Double
>
.
cumulativeSum
(
)
:
List
<
Double
>
(
source
)
@
JvmName
(
name
=
"cumulativeSumOfInt"
)
fun
List
<
Int
>
.
cumulativeSum
(
)
:
List
<
Int
>
(
source
)
@
JvmName
(
name
=
"cumulativeSumOfLong"
)
fun
List
<
Long
>
.
cumulativeSum
(
)
:
List
<
Long
>
(
source
)
fun
<
T
>
Buffer
<
T
>
.
cumulativeSum
(
ring
:
Ring
<
T
>
)
:
Buffer
<
T
>
(
source
)