Skip to content
Permalink
Browse files

c++17 add inclusive_scan function

	modified:   src/cl-stl-base.lisp
	modified:   src/cl-stl-numeric.lisp
	modified:   src/user-package.lisp
  • Loading branch information...
show-matz committed Mar 14, 2019
1 parent beac297 commit af1e71287f0dd588898bfec6b002a0d417ea9d11
Showing with 556 additions and 23 deletions.
  1. +22 −0 src/cl-stl-base.lisp
  2. +530 −23 src/cl-stl-numeric.lisp
  3. +4 −0 src/user-package.lisp
@@ -285,6 +285,10 @@
cl-stl-0x98
cl-stl-0x11
cl-stl-0x14) :transform_reduce
#-(or
cl-stl-0x98
cl-stl-0x11
cl-stl-0x14) :inclusive_scan
;+-----------------------------------------+
;| algorithm |
;+-----------------------------------------+
@@ -1119,6 +1123,24 @@
reduced value.
")

#-(or cl-stl-0x98 cl-stl-0x11 cl-stl-0x14)
(declare-method-overload inclusive_scan (3 4 5)
:documentation "
<<signature>>
(cl-stl:inclusive_scan first last result) [0x17]
(cl-stl:inclusive_scan first last result binary-op) [0x17]
(cl-stl:inclusive_scan first last result binary-op init) [0x17]
<<parameters>>
first : input_iterator.
last : input_iterator.
result : output_iterator.
binary-op : binary functor ( use #'+ as defualt )
init : initial value
<<return value>>
scanned value.
")

;;------------------------------------------------------------------------------
;;
Oops, something went wrong.

0 comments on commit af1e712

Please sign in to comment.
You can’t perform that action at this time.