Skip to content

Commit

Permalink
Updates to ExprTk
Browse files Browse the repository at this point in the history
  • Loading branch information
ArashPartow committed Jan 1, 2021
1 parent 56d38a2 commit fdfb696
Show file tree
Hide file tree
Showing 31 changed files with 5,999 additions and 4,565 deletions.
3 changes: 3 additions & 0 deletions bench_expr_weird.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
+2+1
+2-1
-2-1
2-+1
2+-1
2--1
+2-+1
+2+-1
+2--1
Expand Down
2 changes: 1 addition & 1 deletion exprtk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# **************************************************************
# * C++ Mathematical Expression Toolkit Library *
# * *
# * Author: Arash Partow (1999-2020) *
# * Author: Arash Partow (1999-2021) *
# * URL: http://www.partow.net/programming/exprtk/index.html *
# * *
# * Copyright notice: *
Expand Down
4,526 changes: 2,809 additions & 1,717 deletions exprtk/exprtk.hpp

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion exprtk/exprtk_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* ExprTk vs Native Benchmarks *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
2 changes: 1 addition & 1 deletion exprtk/exprtk_simple_example_01.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 1 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
2 changes: 1 addition & 1 deletion exprtk/exprtk_simple_example_02.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 2 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
2 changes: 1 addition & 1 deletion exprtk/exprtk_simple_example_03.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 3 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
2 changes: 1 addition & 1 deletion exprtk/exprtk_simple_example_04.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 4 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
2 changes: 1 addition & 1 deletion exprtk/exprtk_simple_example_05.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 5 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
2 changes: 1 addition & 1 deletion exprtk/exprtk_simple_example_06.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 6 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
2 changes: 1 addition & 1 deletion exprtk/exprtk_simple_example_07.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 7 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
2 changes: 1 addition & 1 deletion exprtk/exprtk_simple_example_08.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 8 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
2 changes: 1 addition & 1 deletion exprtk/exprtk_simple_example_09.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 9 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
2 changes: 1 addition & 1 deletion exprtk/exprtk_simple_example_10.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 10 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
2 changes: 1 addition & 1 deletion exprtk/exprtk_simple_example_11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 11 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
2 changes: 1 addition & 1 deletion exprtk/exprtk_simple_example_12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 12 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
4 changes: 2 additions & 2 deletions exprtk/exprtk_simple_example_13.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 13 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down Expand Up @@ -89,7 +89,7 @@ void savitzky_golay_filter()

for (std::size_t i = 0; i < v_out.size(); ++i)
{
printf("%10.6f\t%10.6f\n",v_in[i],v_out[i]);
printf("%10.6f\t%10.6f\n", v_in[i], v_out[i]);
}
}

Expand Down
2 changes: 1 addition & 1 deletion exprtk/exprtk_simple_example_14.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 14 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
2 changes: 1 addition & 1 deletion exprtk/exprtk_simple_example_15.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 15 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
2 changes: 1 addition & 1 deletion exprtk/exprtk_simple_example_16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 16 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
2 changes: 1 addition & 1 deletion exprtk/exprtk_simple_example_17.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 17 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
2 changes: 1 addition & 1 deletion exprtk/exprtk_simple_example_18.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 18 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down
4 changes: 2 additions & 2 deletions exprtk/exprtk_simple_example_19.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* C++ Mathematical Expression Toolkit Library *
* *
* Simple Example 19 *
* Author: Arash Partow (1999-2020) *
* Author: Arash Partow (1999-2021) *
* URL: http://www.partow.net/programming/exprtk/index.html *
* *
* Copyright notice: *
Expand Down Expand Up @@ -55,7 +55,7 @@ class randu : public exprtk::igeneric_function<T>
if (
(1 == ps_index) &&
!exprtk::rtl::vecops::helper::
load_vector_range<T>::process(parameters,r0,r1,1,2,0)
load_vector_range<T>::process(parameters, r0, r1, 1, 2, 0)
)
return T(0);

Expand Down
Loading

0 comments on commit fdfb696

Please sign in to comment.