2
0
mirror of https://github.com/boostorg/yap.git synced 2026-01-31 08:42:26 +00:00

83 Commits

Author SHA1 Message Date
Zach Laine
0a86d9bd04 Add ref_t<>, a ref-wrapper type, to use in place of T & hana::tuple elements. 2018-03-02 22:40:16 -06:00
Zach Laine
64aeedbc76 Add run_examples make target that does just what you'd expect. 2018-02-27 17:29:34 -06:00
Louis Dionne
b2322fbca3 Fix typos 2018-02-26 22:41:16 -06:00
Zach Laine
661b09d09d BOOST_YAP_USER_FREE_BINARY_OPERATOR -> BOOST_YAP_USER_NONMEMBER_BINARY_OPERATOR;
add BOOST_YAP_USER_ASSIGN_OPERATOR_MEMBER to macros table in docs.
2018-02-25 22:44:19 -06:00
Zach Laine
74eab425e7 Substantially rewrite the description of transform() semantics.
Fixes #47.
Fixes #50.
2018-02-25 14:18:21 -06:00
Zach Laine
a562edb346 Flesh out commentary in let.cpp; add it to the docs as an example. 2018-02-24 23:58:41 -06:00
Zach Laine
d8b2181185 Copy editing. 2018-02-24 23:58:11 -06:00
Zach Laine
260dc0e82d Remove the now-redundant uses of as_expr(). 2018-02-23 21:50:06 -06:00
Zach Laine
bcbcd8fa26 Don't needlessly return the nth element of a vector as a copy in take_nth.
Fixes #39.
2018-02-23 21:50:06 -06:00
Zach Laine
746adaabfe Condition the 'let' example build on the availability of cosntexpr if. 2018-02-23 02:03:46 -06:00
Zach Laine
91e8c682b5 Remove customization point cruft from example/mixed.cpp. 2018-02-23 01:50:40 -06:00
Zach Laine
6bb94c1082 Remove redundant case from iota_terminal_transform. 2018-02-22 23:18:43 -06:00
Zach Laine
4b383f9343 Add example implementing a version of Boost.Phoenex's let() syntax. 2018-02-20 23:27:40 -06:00
Zach Laine
b80f06a4c6 Finish integrating the two new examples into the docs. 2018-02-18 15:53:12 -06:00
Zach Laine
25d4acf6d6 Add extensive comments to pipable_algorithms.cpp; use snippets from it in the
intro; add it as an example.
2018-02-18 13:33:53 -06:00
Zach Laine
98acc2b2e7 Add pipable_algorithms example. 2018-02-18 12:35:54 -06:00
Zach Laine
5d011d83a0 Tweak comment. 2018-02-16 23:45:15 -06:00
Zach Laine
22b8ab969f Make the calc3 get_arity transform a little nicer based on review feedback.
Fixes #43.
2018-02-16 23:23:48 -06:00
Zach Laine
07848d6236 Simplify the overload set used in the transformf in transform_terminals.
Fixes #38.
2018-02-16 23:07:38 -06:00
Zach Laine
123ea1df6a Fix malformed expr_kind::call overload in transform_terminals example. 2018-02-16 23:02:59 -06:00
Zach Laine
8712988c25 Add expr_tag template to handle expr_kind <-> tag mapping.
Fixes #49.
2018-02-16 22:34:09 -06:00
Zach Laine
d1834c6c01 Add references to specific examples alluded to in a general reference to "Examples". 2018-02-16 21:56:53 -06:00
Zach Laine
0f4e144edc Add terminal transform example; not working due to longstanding call_expr tag
transform matching bug.
2018-02-15 23:02:26 -06:00
Zach Laine
27380020d7 Revert "Transform terminals before they are unwrapped and given as arguments to"
This reverts commit 4e68505bab.

Fixes #40.
2018-02-15 21:24:20 -06:00
Zach Laine
8282c4b10e Add Boost license copyright headers to all C++ files.
Fixes #31.
2018-02-15 18:07:48 -06:00
Zach Laine
2adaeb8813 Remove customization point-based and their implicit tranformations,
evaluate_as(), and BOOST_YAP_CONVERSION_OPERATOR_TEMPLATE.

Fixes #29
Fixes #30
2018-02-14 20:32:00 -06:00
Zach Laine
b6d53d153d Changes based on Part 2 of Steven Watanabe's review. 2018-02-14 17:50:29 -06:00
Zach Laine
dee006df7d Update docs and some example code based on part 1 of Steven Watanabe's review. 2018-02-11 14:20:30 -06:00
Zach Laine
ed985c0b21 Doc update to make the sections on transform() clearer. 2018-02-02 22:45:01 -06:00
Zach Laine
d0ba21f938 Add missing Boost.Serialization include to autodeff.h. 2017-06-24 17:26:34 -05:00
Zach Laine
55e9f33892 Remove this_type parameter from all member function macros. 2017-05-09 11:14:55 -05:00
Zach Laine
62bfb3d0b8 Amplify Transforming Expressions section. Fixes #14. 2017-03-17 21:27:11 -05:00
Zach Laine
4e68505bab Transform terminals before they are unwrapped and given as arguments to
TagTransforms.
2017-03-12 14:59:35 -05:00
Zach Laine
3230cf2955 #include yap/algorithm instead of yap/expression in appropriate examples. 2016-12-21 20:11:37 -06:00
Louis Dionne
c23c06e509 [CMake] Pull the setting up of dependencies into its own file
Also, properly define link/header dependencies between targets.
2016-12-18 17:49:23 -06:00
Zach Laine
24a0ef69de Make examples C++14 friendly. 2016-12-17 23:17:04 -06:00
Zach Laine
858117ea71 Remove unnecessary genericity in autodiff example, and remove the
assert(false) in the negation transform (since the reason it was placed there
is fixed).
2016-12-17 19:27:49 -06:00
Zach Laine
056e886351 Slight modifications to autodiff example, including one that reveals a bug. 2016-12-17 13:09:55 -06:00
Zach Laine
211454066b Brevity in autodiff example. 2016-12-16 22:47:40 -06:00
Zach Laine
d9f17587cc Refactor the autodiff example code to make it a better example. 2016-12-16 22:30:05 -06:00
Zach Laine
9e37427a0b Add Autodiff_library sources as the basis for an example. 2016-12-16 22:20:10 -06:00
Zach Laine
31669e341b Implement placeholder as a terminal with a special value type. 2016-12-16 18:07:29 -06:00
Zach Laine
39c2d7f5d1 Add a TODO. 2016-12-15 19:09:46 -06:00
Zach Laine
35e89d7e81 Docs copy editing. 2016-12-13 17:06:26 -06:00
Zach Laine
1273e5109e Finish first pass on the examples docs. 2016-12-12 16:13:07 -06:00
Zach Laine
9bd24cd2b9 Update example docs. 2016-12-12 14:32:49 -06:00
Zach Laine
0c76f2eb5d Fix size check in vector example. 2016-12-12 14:32:39 -06:00
Zach Laine
dc09144718 Update example docs. 2016-12-12 00:00:49 -06:00
Zach Laine
b76eb66101 Add hello_world_redux example. 2016-12-11 23:32:39 -06:00
Zach Laine
04060c65e4 Update tutorial docs. 2016-12-11 15:34:03 -06:00