27
Algorithms library
[algorithms]
27.10
Generalized numeric operations
[numeric.ops]
27.10.2
Definitions
[numerics.defns]
1
#
Define
GENERALIZED_
NONCOMMUTATIVE_
SUM
(
op, a1,
.
.
.
, aN
)
as follows:
(1.1)
a1
when
N
is
1
, otherwise
(1.2)
op
(
GENERALIZED_
NONCOMMUTATIVE_
SUM
(
op, a1,
.
.
.
, aK
)
,
op(
GENERALIZED_
NONCOMMUTATIVE_
SUM
(
op, aM,
.
.
.
, aN
)
)
for any
K
where
1
<
K
+
1
=
M
≤
N
.
2
#
Define
GENERALIZED_
SUM
(
op, a1,
.
.
.
, aN
)
as
GENERALIZED_
NONCOMMUTATIVE_
SUM
(
op, b1,
.
.
.
, bN
)
, where
b1,
.
.
.
, bN
may be any permutation of
a1,
.
.
.
, aN
.