You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently (in v0.7) reduce's signature is reduce(op, itr) and reduce(op, v0, itr), whereas reducedim's signature is reducedim(f, A, region[, v0]). It was surprising to me that the order of v0 is inconsistent between the two functions.
It is understandable that v0 comes earlier than itr in reduce(op, v0, itr), because v0 is the left argument of the binary operator op and itr supplies right arguments. To be consistent, wouldn't it be better to separate the definition reducedim(f, A, region[, v0]) into two: reducedim(f, A, region) and reducedim(f, v0, A, region)? Or, is there any particular reason for this inconsistency?
The text was updated successfully, but these errors were encountered:
Currently (in v0.7)
reduce
's signature isreduce(op, itr)
andreduce(op, v0, itr)
, whereasreducedim
's signature isreducedim(f, A, region[, v0])
. It was surprising to me that the order ofv0
is inconsistent between the two functions.It is understandable that
v0
comes earlier thanitr
inreduce(op, v0, itr)
, becausev0
is the left argument of the binary operatorop
anditr
supplies right arguments. To be consistent, wouldn't it be better to separate the definitionreducedim(f, A, region[, v0])
into two:reducedim(f, A, region)
andreducedim(f, v0, A, region)
? Or, is there any particular reason for this inconsistency?The text was updated successfully, but these errors were encountered: