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
The end of the resulting range beginning at <code>result</code>.
816
-
</ins>
817
798
</cxx-returns>
818
799
819
800
<cxx-requires>
820
-
<ins>
821
801
Neither <code>unary_op</code> nor <code>binary_op</code> shall invalidate iterators or subranges, or modify elements in the
822
802
ranges <code>[first,last)</code> or <code>[result,result + (last - first))</code>.
823
-
</ins>
824
803
</cxx-requires>
825
804
826
805
<cxx-complexity>
827
-
<ins>
828
806
O(<code>last - first</code>) applications each of <code>unary_op</code> and <code>binary_op</code>.
829
-
</ins>
830
807
</cxx-complexity>
831
808
832
809
<cxx-notes>
833
-
<ins>
834
810
The difference between <code>transform_exclusive_scan</code> and <code>transform_inclusive_scan</code> is that <code>transform_exclusive_scan</code>
835
811
excludes the ith input element from the ith sum. If <code>binary_op</code> is not mathematically associative, the behavior of
836
812
<code>transform_exclusive_scan</code> may be non-deterministic. <code>transform_exclusive_scan</code> does not apply <code>unary_op</code> to <code>init</code>.
Assigns through each iterator <code>i</code> in <code>[result,result + (last - first))</code> the value of
871
843
<code><em>GENERALIZED_NONCOMMUTATIVE_SUM</em>(binary_op, unary_op(*first), ..., unary_op(*(first + (i - result))))</code> or
872
844
<code><em>GENERALIZED_NONCOMMUTATIVE_SUM</em>(binary_op, init, unary_op(*first), ..., unary_op(*(first + (i - result))))</code>
873
845
if <code>init</code> is provided.
874
-
</ins>
875
846
</cxx-effects>
876
847
877
848
<cxx-returns>
878
-
<ins>
879
849
The end of the resulting range beginning at <code>result</code>.
880
-
</ins>
881
850
</cxx-returns>
882
851
883
852
<cxx-requires>
884
-
<ins>
885
853
Neither <code>unary_op</code> nor <code>binary_op</code> shall invalidate iterators or subranges, or modify elements in the ranges <code>[first,last)</code>
886
854
or <code>[result,result + (last - first))</code>.
887
-
</ins>
888
855
</cxx-requires>
889
856
890
857
<cxx-complexity>
891
-
<ins>
892
858
O(<code>last - first</code>) applications each of <code>unary_op</code> and <code>binary_op</code>.
893
-
</ins>
894
859
</cxx-complexity>
895
860
896
861
<cxx-notes>
897
-
<ins>
898
-
The difference between <code>transform_exclusive_scan</code> and <code>transform_inclusive_scan</code> is that <code>transform_inclusive_scan</code>
899
-
includes the ith input element from the ith sum. If <code>binary_op</code> is not mathematically associative, the behavior of
900
-
<code>transform_inclusive_scan</code> may be non-deterministic. <code>transform_inclusive_scan</code> does not apply <code>unary_op</code> to <code>init</code>.
901
-
</ins>
862
+
The difference between <code>transform_exclusive_scan</code> and <code>transform_inclusive_scan</code> is that <code>transform_inclusive_scan</code>
863
+
includes the ith input element from the ith sum. If <code>binary_op</code> is not mathematically associative, the behavior of
864
+
<code>transform_inclusive_scan</code> may be non-deterministic. <code>transform_inclusive_scan</code> does not apply <code>unary_op</code> to <code>init</code>.
0 commit comments