Skip to content

Instantly share code, notes, and snippets.

@WardBrian
Created April 12, 2022 14:36
Show Gist options
  • Save WardBrian/67f3f279d19c386998caaafac36c0cf9 to your computer and use it in GitHub Desktop.
Save WardBrian/67f3f279d19c386998caaafac36c0cf9 to your computer and use it in GitHub Desktop.
make: 'test/expressions/stanc' is up to date.
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests27_test.o -MM -E -MG -MP -MF test/expressions/tests27_test.d test/expressions/tests27_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests26_test.o -MM -E -MG -MP -MF test/expressions/tests26_test.d test/expressions/tests26_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests25_test.o -MM -E -MG -MP -MF test/expressions/tests25_test.d test/expressions/tests25_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests24_test.o -MM -E -MG -MP -MF test/expressions/tests24_test.d test/expressions/tests24_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests23_test.o -MM -E -MG -MP -MF test/expressions/tests23_test.d test/expressions/tests23_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests22_test.o -MM -E -MG -MP -MF test/expressions/tests22_test.d test/expressions/tests22_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests21_test.o -MM -E -MG -MP -MF test/expressions/tests21_test.d test/expressions/tests21_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests20_test.o -MM -E -MG -MP -MF test/expressions/tests20_test.d test/expressions/tests20_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests19_test.o -MM -E -MG -MP -MF test/expressions/tests19_test.d test/expressions/tests19_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests18_test.o -MM -E -MG -MP -MF test/expressions/tests18_test.d test/expressions/tests18_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests17_test.o -MM -E -MG -MP -MF test/expressions/tests17_test.d test/expressions/tests17_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests16_test.o -MM -E -MG -MP -MF test/expressions/tests16_test.d test/expressions/tests16_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests15_test.o -MM -E -MG -MP -MF test/expressions/tests15_test.d test/expressions/tests15_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests14_test.o -MM -E -MG -MP -MF test/expressions/tests14_test.d test/expressions/tests14_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests13_test.o -MM -E -MG -MP -MF test/expressions/tests13_test.d test/expressions/tests13_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests12_test.o -MM -E -MG -MP -MF test/expressions/tests12_test.d test/expressions/tests12_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests11_test.o -MM -E -MG -MP -MF test/expressions/tests11_test.d test/expressions/tests11_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests10_test.o -MM -E -MG -MP -MF test/expressions/tests10_test.d test/expressions/tests10_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests9_test.o -MM -E -MG -MP -MF test/expressions/tests9_test.d test/expressions/tests9_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests8_test.o -MM -E -MG -MP -MF test/expressions/tests8_test.d test/expressions/tests8_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests7_test.o -MM -E -MG -MP -MF test/expressions/tests7_test.d test/expressions/tests7_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests6_test.o -MM -E -MG -MP -MF test/expressions/tests6_test.d test/expressions/tests6_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests5_test.o -MM -E -MG -MP -MF test/expressions/tests5_test.d test/expressions/tests5_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests4_test.o -MM -E -MG -MP -MF test/expressions/tests4_test.d test/expressions/tests4_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests3_test.o -MM -E -MG -MP -MF test/expressions/tests3_test.d test/expressions/tests3_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests2_test.o -MM -E -MG -MP -MF test/expressions/tests2_test.d test/expressions/tests2_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests1_test.o -MM -E -MG -MP -MF test/expressions/tests1_test.d test/expressions/tests1_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -c -MT test/expressions/tests0_test.o -MM -E -MG -MP -MF test/expressions/tests0_test.d test/expressions/tests0_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -DGTEST_HAS_PTHREAD=0 -c -o test/expressions/tests0_test.o test/expressions/tests0_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -DGTEST_HAS_PTHREAD=0 -c -o lib/benchmark_1.5.1/googletest/googletest/src/gtest-all.o lib/benchmark_1.5.1/googletest/googletest/src/gtest-all.cc
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -DGTEST_HAS_PTHREAD=0 -c -o test/expressions/tests1_test.o test/expressions/tests1_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -DGTEST_HAS_PTHREAD=0 -c -o test/expressions/tests2_test.o test/expressions/tests2_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -DGTEST_HAS_PTHREAD=0 -c -o test/expressions/tests3_test.o test/expressions/tests3_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -DGTEST_HAS_PTHREAD=0 -c -o test/expressions/tests4_test.o test/expressions/tests4_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -DGTEST_HAS_PTHREAD=0 -c -o test/expressions/tests5_test.o test/expressions/tests5_test.cpp
g++ -std=c++1y -pthread -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes -I lib/tbb_2020.3/include -O3 -I . -I lib/eigen_3.3.9 -I lib/boost_1.75.0 -I lib/sundials_6.1.1/include -I lib/sundials_6.1.1/src/sundials -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -I lib/benchmark_1.5.1/googletest/googletest/include -I lib/benchmark_1.5.1/googletest/googletest -DBOOST_DISABLE_ASSERTS -DGTEST_HAS_PTHREAD=0 -DGTEST_HAS_PTHREAD=0 -c -o test/expressions/tests6_test.o test/expressions/tests6_test.cpp
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests4_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<double>; Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, -1, 1>, -1, 1, false> >; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests4_test.cpp:15:71: required from here
./stan/math/prim/fun/add.hpp:77:26: error: ‘stan::complex_return_t<double, Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, -1, 1, 0, -1, 1>, -1, 1, false> > > >’ {aka ‘struct std::complex<double>’} has no member named ‘matrix’
77 | return (c + m.array()).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests4_test.cpp: In member function ‘virtual void ExpressionTestPrim_add7_Test::TestBody()’:
test/expressions/tests4_test.cpp:15:72: error: invalid use of void expression
15 | auto result5 = stan::math::eval(stan::math::add(complex0,matrix1_expr2));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests4_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<double>; Mat = Eigen::Matrix<std::complex<double>, -1, 1>; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests4_test.cpp:16:65: required from here
./stan/math/prim/fun/add.hpp:77:26: error: ‘stan::complex_return_t<double, Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<double>, -1, 1, 0, -1, 1> > >’ {aka ‘struct std::complex<double>’} has no member named ‘matrix’
77 | return (c + m.array()).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests4_test.cpp:16:66: error: invalid use of void expression
16 | auto result6 = stan::math::eval(stan::math::add(complex3,matrix4));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests4_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<stan::math::var_value<double> >; Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, 1, 0, -1, 1>, -1, 1, false> >; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests4_test.cpp:33:71: required from here
./stan/math/prim/fun/add.hpp:77:26: error: ‘stan::complex_return_t<stan::math::var_value<double, void>, Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double, void> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double, void> >, -1, 1, 0, -1, 1>, -1, 1, false> > > >’ {aka ‘class std::complex<stan::math::var_value<double> >’} has no member named ‘matrix’
77 | return (c + m.array()).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests4_test.cpp: In member function ‘virtual void ExpressionTestRev_add7_Test::TestBody()’:
test/expressions/tests4_test.cpp:33:72: error: invalid use of void expression
33 | auto result5 = stan::math::eval(stan::math::add(complex0,matrix1_expr2));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests4_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<stan::math::var_value<double> >; Mat = Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, 1, 0, -1, 1>; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests4_test.cpp:34:65: required from here
./stan/math/prim/fun/add.hpp:77:26: error: ‘stan::complex_return_t<stan::math::var_value<double, void>, Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::var_value<double, void> >, -1, 1, 0, -1, 1> > >’ {aka ‘class std::complex<stan::math::var_value<double> >’} has no member named ‘matrix’
77 | return (c + m.array()).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests4_test.cpp:34:66: error: invalid use of void expression
34 | auto result6 = stan::math::eval(stan::math::add(complex3,matrix4));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests4_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<stan::math::fvar<double> >; Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1>, -1, 1, false> >; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests4_test.cpp:58:71: required from here
./stan/math/prim/fun/add.hpp:77:26: error: ‘stan::complex_return_t<stan::math::fvar<double>, Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1, 0, -1, 1>, -1, 1, false> > > >’ {aka ‘struct std::complex<stan::math::fvar<double> >’} has no member named ‘matrix’
77 | return (c + m.array()).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests4_test.cpp: In member function ‘virtual void ExpressionTestFwd_add7_Test::TestBody()’:
test/expressions/tests4_test.cpp:58:72: error: invalid use of void expression
58 | auto result5 = stan::math::eval(stan::math::add(complex0,matrix1_expr2));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests4_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<stan::math::fvar<double> >; Mat = Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1>; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests4_test.cpp:59:65: required from here
./stan/math/prim/fun/add.hpp:77:26: error: ‘stan::complex_return_t<stan::math::fvar<double>, Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1, 0, -1, 1> > >’ {aka ‘struct std::complex<stan::math::fvar<double> >’} has no member named ‘matrix’
77 | return (c + m.array()).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests4_test.cpp:59:66: error: invalid use of void expression
59 | auto result6 = stan::math::eval(stan::math::add(complex3,matrix4));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests1_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, 1>, -1, 1, false> >; Scal = std::complex<double>; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests1_test.cpp:91:71: required from here
./stan/math/prim/fun/add.hpp:61:26: error: ‘stan::complex_return_t<Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, 1, 0, -1, 1>, -1, 1, false> > >, double>’ {aka ‘struct std::complex<double>’} has no member named ‘matrix’
61 | return (m.array() + c).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests1_test.cpp: In member function ‘virtual void ExpressionTestPrim_add3_Test::TestBody()’:
test/expressions/tests1_test.cpp:91:72: error: invalid use of void expression
91 | auto result5 = stan::math::eval(stan::math::add(matrix0_expr2,complex1));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests1_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::Matrix<double, -1, 1>; Scal = std::complex<double>; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests1_test.cpp:92:65: required from here
./stan/math/prim/fun/add.hpp:61:26: error: ‘stan::complex_return_t<Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1, 0, -1, 1> >, double>’ {aka ‘struct std::complex<double>’} has no member named ‘matrix’
61 | return (m.array() + c).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests1_test.cpp:92:66: error: invalid use of void expression
92 | auto result6 = stan::math::eval(stan::math::add(matrix3,complex4));
| ^
test/expressions/tests2_test.cpp: In member function ‘virtual void ExpressionTestRev_add3_Test::TestBody()’:
test/expressions/tests2_test.cpp:15:71: error: no matching function for call to ‘add(Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::var_value<double> >, const Eigen::Block<Eigen::Matrix<stan::math::var_value<double>, -1, 1>, -1, 1, false> >&, std::complex<stan::math::var_value<double> >&)’
15 | auto result5 = stan::math::eval(stan::math::add(matrix0_expr2,complex1));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
./stan/math/prim/fun/add.hpp:23:40: note: candidate: ‘template<class ScalarA, class ScalarB, stan::require_all_stan_scalar_t<T_y, T_high>* <anonymous>, stan::require_all_not_var_t<ScalarA, ScalarB>* <anonymous> > stan::return_type_t<T1, T2> stan::math::add(const ScalarA&, const ScalarB&)’
23 | inline return_type_t<ScalarA, ScalarB> add(const ScalarA& a, const ScalarB& b) {
| ^~~
./stan/math/prim/fun/add.hpp:23:40: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/memory:62,
from lib/benchmark_1.5.1/googletest/googletest/include/gtest/gtest.h:57,
from ./test/expressions/expression_test_helpers.hpp:1,
from test/expressions/tests2_test.cpp:1:
/usr/include/c++/9/type_traits: In substitution of ‘template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = std::integral_constant<bool, false>::value; _Tp = void]’:
./stan/math/prim/meta/require_helpers.hpp:34:7: required by substitution of ‘template<class ... Checks> using require_all_t = std::enable_if_t<stan::math::conjunction<T>::value> [with Checks = {stan::is_stan_scalar<Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::var_value<double, void> >, const Eigen::Block<Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, -1, 1, false> > >, stan::is_stan_scalar<std::complex<stan::math::var_value<double, void> > >}]’
./stan/math/prim/meta/is_stan_scalar.hpp:31:1: required by substitution of ‘template<class ... Types> using require_all_stan_scalar_t = stan::require_all_t<stan::is_stan_scalar<typename std::decay<Types>::type>...> [with Types = {Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::var_value<double, void> >, const Eigen::Block<Eigen::Matrix<stan::math::var_value<double, void>, -1, 1, 0, -1, 1>, -1, 1, false> >, std::complex<stan::math::var_value<double, void> >}]’
./stan/math/prim/fun/add.hpp:21:58: required from here
/usr/include/c++/9/type_traits:2378:11: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
2378 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
./stan/math/prim/fun/add.hpp:43:13: note: candidate: ‘template<class Mat1, class Mat2, stan::require_all_eigen_t<T_desired, T_actual>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(const Mat1&, const Mat2&)’
43 | inline auto add(const Mat1& m1, const Mat2& m2) {
| ^~~
./stan/math/prim/fun/add.hpp:43:13: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:60:13: note: candidate: ‘template<class Mat, class Scal, stan::require_eigen_t<T_desired>* <anonymous>, stan::require_stan_scalar_t<V>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(const Mat&, Scal)’
60 | inline auto add(const Mat& m, const Scal c) {
| ^~~
./stan/math/prim/fun/add.hpp:60:13: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:76:13: note: candidate: ‘template<class Scal, class Mat, stan::require_stan_scalar_t<U>* <anonymous>, stan::require_eigen_t<S>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(Scal, const Mat&)’
76 | inline auto add(const Scal c, const Mat& m) {
| ^~~
./stan/math/prim/fun/add.hpp:76:13: note: template argument deduction/substitution failed:
In file included from ./stan/math/rev/core.hpp:28,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests2_test.cpp:1:
./stan/math/rev/core/operator_addition.hpp:111:13: note: candidate: ‘template<class VarMat1, class VarMat2, stan::require_all_rev_matrix_t<VarMat1, VarMat2>* <anonymous> > auto stan::math::add(const VarMat1&, const VarMat2&)’
111 | inline auto add(const VarMat1& a, const VarMat2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:111:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:142:13: note: candidate: ‘template<class Arith, class VarMat, stan::require_st_arithmetic<T>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const VarMat&, const Arith&)’
142 | inline auto add(const VarMat& a, const Arith& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:142:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:168:13: note: candidate: ‘template<class Arith, class VarMat, stan::require_st_arithmetic<T>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const Arith&, const VarMat&)’
168 | inline auto add(const Arith& a, const VarMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:168:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:184:13: note: candidate: ‘template<class Var, class EigMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_eigen_vt<std::is_arithmetic, EigMat>* <anonymous> > auto stan::math::add(const Var&, const EigMat&)’
184 | inline auto add(const Var& a, const EigMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:184:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:203:13: note: candidate: ‘template<class EigMat, class Var, stan::require_eigen_vt<std::is_arithmetic, T>* <anonymous>, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous> > auto stan::math::add(const EigMat&, const Var&)’
203 | inline auto add(const EigMat& a, const Var& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:203:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:220:13: note: candidate: ‘template<class Var, class VarMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const Var&, const VarMat&)’
220 | inline auto add(const Var& a, const VarMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:220:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:249:13: note: candidate: ‘template<class Var, class VarMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const VarMat&, const Var&)’
249 | inline auto add(const VarMat& a, const Var& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:249:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:256:13: note: candidate: ‘template<class T1, class T2, stan::require_any_var_vt<std::is_arithmetic, T1, T2>* <anonymous>, stan::require_any_arithmetic_t<T1, T2>* <anonymous> > auto stan::math::add(const T1&, const T2&)’
256 | inline auto add(const T1& a, const T2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:256:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:262:13: note: candidate: ‘template<class T1, class T2, stan::require_all_var_vt<std::is_arithmetic, T1, T2>* <anonymous> > auto stan::math::add(const T1&, const T2&)’
262 | inline auto add(const T1& a, const T2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:262:13: note: template argument deduction/substitution failed:
test/expressions/tests2_test.cpp:16:65: error: no matching function for call to ‘add(Eigen::Matrix<stan::math::var_value<double>, -1, 1>&, std::complex<stan::math::var_value<double> >&)’
16 | auto result6 = stan::math::eval(stan::math::add(matrix3,complex4));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
./stan/math/prim/fun/add.hpp:23:40: note: candidate: ‘template<class ScalarA, class ScalarB, stan::require_all_stan_scalar_t<T_y, T_high>* <anonymous>, stan::require_all_not_var_t<ScalarA, ScalarB>* <anonymous> > stan::return_type_t<T1, T2> stan::math::add(const ScalarA&, const ScalarB&)’
23 | inline return_type_t<ScalarA, ScalarB> add(const ScalarA& a, const ScalarB& b) {
| ^~~
./stan/math/prim/fun/add.hpp:23:40: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:43:13: note: candidate: ‘template<class Mat1, class Mat2, stan::require_all_eigen_t<T_desired, T_actual>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(const Mat1&, const Mat2&)’
43 | inline auto add(const Mat1& m1, const Mat2& m2) {
| ^~~
./stan/math/prim/fun/add.hpp:43:13: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:60:13: note: candidate: ‘template<class Mat, class Scal, stan::require_eigen_t<T_desired>* <anonymous>, stan::require_stan_scalar_t<V>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(const Mat&, Scal)’
60 | inline auto add(const Mat& m, const Scal c) {
| ^~~
./stan/math/prim/fun/add.hpp:60:13: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:76:13: note: candidate: ‘template<class Scal, class Mat, stan::require_stan_scalar_t<U>* <anonymous>, stan::require_eigen_t<S>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(Scal, const Mat&)’
76 | inline auto add(const Scal c, const Mat& m) {
| ^~~
./stan/math/prim/fun/add.hpp:76:13: note: template argument deduction/substitution failed:
In file included from ./stan/math/rev/core.hpp:28,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests2_test.cpp:1:
./stan/math/rev/core/operator_addition.hpp:111:13: note: candidate: ‘template<class VarMat1, class VarMat2, stan::require_all_rev_matrix_t<VarMat1, VarMat2>* <anonymous> > auto stan::math::add(const VarMat1&, const VarMat2&)’
111 | inline auto add(const VarMat1& a, const VarMat2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:111:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:142:13: note: candidate: ‘template<class Arith, class VarMat, stan::require_st_arithmetic<T>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const VarMat&, const Arith&)’
142 | inline auto add(const VarMat& a, const Arith& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:142:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:168:13: note: candidate: ‘template<class Arith, class VarMat, stan::require_st_arithmetic<T>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const Arith&, const VarMat&)’
168 | inline auto add(const Arith& a, const VarMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:168:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:184:13: note: candidate: ‘template<class Var, class EigMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_eigen_vt<std::is_arithmetic, EigMat>* <anonymous> > auto stan::math::add(const Var&, const EigMat&)’
184 | inline auto add(const Var& a, const EigMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:184:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:203:13: note: candidate: ‘template<class EigMat, class Var, stan::require_eigen_vt<std::is_arithmetic, T>* <anonymous>, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous> > auto stan::math::add(const EigMat&, const Var&)’
203 | inline auto add(const EigMat& a, const Var& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:203:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:220:13: note: candidate: ‘template<class Var, class VarMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const Var&, const VarMat&)’
220 | inline auto add(const Var& a, const VarMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:220:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:249:13: note: candidate: ‘template<class Var, class VarMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const VarMat&, const Var&)’
249 | inline auto add(const VarMat& a, const Var& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:249:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:256:13: note: candidate: ‘template<class T1, class T2, stan::require_any_var_vt<std::is_arithmetic, T1, T2>* <anonymous>, stan::require_any_arithmetic_t<T1, T2>* <anonymous> > auto stan::math::add(const T1&, const T2&)’
256 | inline auto add(const T1& a, const T2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:256:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:262:13: note: candidate: ‘template<class T1, class T2, stan::require_all_var_vt<std::is_arithmetic, T1, T2>* <anonymous> > auto stan::math::add(const T1&, const T2&)’
262 | inline auto add(const T1& a, const T2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:262:13: note: template argument deduction/substitution failed:
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> >; Scal = std::complex<stan::math::fvar<double> >; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests2_test.cpp:40:71: required from here
./stan/math/prim/fun/add.hpp:61:26: error: ‘stan::complex_return_t<Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1, 0, -1, 1>, -1, 1, false> > >, stan::math::fvar<double> >’ {aka ‘struct std::complex<stan::math::fvar<double> >’} has no member named ‘matrix’
61 | return (m.array() + c).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests2_test.cpp: In member function ‘virtual void ExpressionTestFwd_add3_Test::TestBody()’:
test/expressions/tests2_test.cpp:40:72: error: invalid use of void expression
40 | auto result5 = stan::math::eval(stan::math::add(matrix0_expr2,complex1));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::Matrix<stan::math::fvar<double>, -1, 1>; Scal = std::complex<stan::math::fvar<double> >; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests2_test.cpp:41:65: required from here
./stan/math/prim/fun/add.hpp:61:26: error: ‘stan::complex_return_t<Eigen::ArrayWrapper<const Eigen::Matrix<stan::math::fvar<double>, -1, 1, 0, -1, 1> >, stan::math::fvar<double> >’ {aka ‘struct std::complex<stan::math::fvar<double> >’} has no member named ‘matrix’
61 | return (m.array() + c).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests2_test.cpp:41:66: error: invalid use of void expression
41 | auto result6 = stan::math::eval(stan::math::add(matrix3,complex4));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> >; Scal = std::complex<stan::math::fvar<double> >; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests3_test.cpp:15:71: required from here
./stan/math/prim/fun/add.hpp:61:26: error: ‘stan::complex_return_t<Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1, 0, -1, -1>, -1, -1, false> > >, stan::math::fvar<double> >’ {aka ‘struct std::complex<stan::math::fvar<double> >’} has no member named ‘matrix’
61 | return (m.array() + c).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests3_test.cpp: In member function ‘virtual void ExpressionTestFwd_add5_Test::TestBody()’:
test/expressions/tests3_test.cpp:15:72: error: invalid use of void expression
15 | auto result5 = stan::math::eval(stan::math::add(matrix0_expr2,complex1));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::Matrix<stan::math::fvar<double>, -1, -1>; Scal = std::complex<stan::math::fvar<double> >; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests3_test.cpp:16:65: required from here
./stan/math/prim/fun/add.hpp:61:26: error: ‘stan::complex_return_t<Eigen::ArrayWrapper<const Eigen::Matrix<stan::math::fvar<double>, -1, -1, 0, -1, -1> >, stan::math::fvar<double> >’ {aka ‘struct std::complex<stan::math::fvar<double> >’} has no member named ‘matrix’
61 | return (m.array() + c).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests3_test.cpp:16:66: error: invalid use of void expression
16 | auto result6 = stan::math::eval(stan::math::add(matrix3,complex4));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, false> >; Scal = std::complex<double>; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests2_test.cpp:58:71: required from here
./stan/math/prim/fun/add.hpp:61:26: error: ‘stan::complex_return_t<Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, -1, 0, -1, -1>, -1, -1, false> > >, double>’ {aka ‘struct std::complex<double>’} has no member named ‘matrix’
61 | return (m.array() + c).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests2_test.cpp: In member function ‘virtual void ExpressionTestPrim_add5_Test::TestBody()’:
test/expressions/tests2_test.cpp:58:72: error: invalid use of void expression
58 | auto result5 = stan::math::eval(stan::math::add(matrix0_expr2,complex1));
| ^
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests4_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp: In instantiation of ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = std::complex<double>; V = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, -1, 1>, -1, 1, false> > >; stan::complex_return_t<U, V> = std::complex<double>; typename stan::real_return<U, V>::type = double]’:
./stan/math/prim/core/operator_addition.hpp:55:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const std::complex<_Tp>&, const V&) [with U = double; V = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, -1, 1>, -1, 1, false> > >; stan::complex_return_t<U, V> = std::complex<double>; typename stan::real_return<U, V>::type = double]’
./stan/math/prim/fun/add.hpp:77:13: required from ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<double>; Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, -1, 1>, -1, 1, false> >; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests4_test.cpp:15:71: required from here
./stan/math/prim/core/operator_addition.hpp:24:5: error: no match for ‘operator+=’ (operand types are ‘stan::complex_return_t<std::complex<double>, Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, -1, 1, 0, -1, 1>, -1, 1, false> > > >’ {aka ‘std::complex<double>’} and ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, -1, 1>, -1, 1, false> > >’)
24 | y += rhs;
| ~~^~~~~~
In file included from lib/eigen_3.3.9/Eigen/Core:96,
from lib/eigen_3.3.9/Eigen/Dense:1,
from ./stan/math/prim/fun/Eigen.hpp:22,
from ./stan/math/prim/meta/append_return_type.hpp:4,
from ./stan/math/prim/meta.hpp:176,
from ./stan/math/prim/err/invalid_argument.hpp:4,
from ./stan/math/prim/core/init_threadpool_tbb.hpp:4,
from ./stan/math/prim/core.hpp:4,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests4_test.cpp:1:
/usr/include/c++/9/complex:1287:7: note: candidate: ‘std::complex<double>& std::complex<double>::operator+=(double)’
1287 | operator+=(double __d)
| ^~~~~~~~
/usr/include/c++/9/complex:1287:25: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, -1, 1>, -1, 1, false> > >’ to ‘double’
1287 | operator+=(double __d)
| ~~~~~~~^~~
/usr/include/c++/9/complex:1329:9: note: candidate: ‘template<class _Tp> std::complex<double>& std::complex<double>::operator+=(const std::complex<_Tp>&)’
1329 | operator+=(const complex<_Tp>& __z)
| ^~~~~~~~
/usr/include/c++/9/complex:1329:9: note: template argument deduction/substitution failed:
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests4_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp:24:5: note: ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, -1, 1>, -1, 1, false> > >’ is not derived from ‘const std::complex<_Tp>’
24 | y += rhs;
| ~~^~~~~~
./stan/math/prim/core/operator_addition.hpp: In instantiation of ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = std::complex<double>; V = Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<double>, -1, 1> >; stan::complex_return_t<U, V> = std::complex<double>; typename stan::real_return<U, V>::type = double]’:
./stan/math/prim/core/operator_addition.hpp:55:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const std::complex<_Tp>&, const V&) [with U = double; V = Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<double>, -1, 1> >; stan::complex_return_t<U, V> = std::complex<double>; typename stan::real_return<U, V>::type = double]’
./stan/math/prim/fun/add.hpp:77:13: required from ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<double>; Mat = Eigen::Matrix<std::complex<double>, -1, 1>; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests4_test.cpp:16:65: required from here
./stan/math/prim/core/operator_addition.hpp:24:5: error: no match for ‘operator+=’ (operand types are ‘stan::complex_return_t<std::complex<double>, Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<double>, -1, 1, 0, -1, 1> > >’ {aka ‘std::complex<double>’} and ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<double>, -1, 1> >’)
In file included from lib/eigen_3.3.9/Eigen/Core:96,
from lib/eigen_3.3.9/Eigen/Dense:1,
from ./stan/math/prim/fun/Eigen.hpp:22,
from ./stan/math/prim/meta/append_return_type.hpp:4,
from ./stan/math/prim/meta.hpp:176,
from ./stan/math/prim/err/invalid_argument.hpp:4,
from ./stan/math/prim/core/init_threadpool_tbb.hpp:4,
from ./stan/math/prim/core.hpp:4,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests4_test.cpp:1:
/usr/include/c++/9/complex:1287:7: note: candidate: ‘std::complex<double>& std::complex<double>::operator+=(double)’
1287 | operator+=(double __d)
| ^~~~~~~~
/usr/include/c++/9/complex:1287:25: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<double>, -1, 1> >’ to ‘double’
1287 | operator+=(double __d)
| ~~~~~~~^~~
/usr/include/c++/9/complex:1329:9: note: candidate: ‘template<class _Tp> std::complex<double>& std::complex<double>::operator+=(const std::complex<_Tp>&)’
1329 | operator+=(const complex<_Tp>& __z)
| ^~~~~~~~
/usr/include/c++/9/complex:1329:9: note: template argument deduction/substitution failed:
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests4_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp:24:5: note: ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<double>, -1, 1> >’ is not derived from ‘const std::complex<_Tp>’
24 | y += rhs;
| ~~^~~~~~
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::Matrix<double, -1, -1>; Scal = std::complex<double>; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests2_test.cpp:59:65: required from here
./stan/math/prim/fun/add.hpp:61:26: error: ‘stan::complex_return_t<Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, -1, 0, -1, -1> >, double>’ {aka ‘struct std::complex<double>’} has no member named ‘matrix’
61 | return (m.array() + c).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests2_test.cpp:59:66: error: invalid use of void expression
59 | auto result6 = stan::math::eval(stan::math::add(matrix3,complex4));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<double>; Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, 1, -1>, 1, -1, false> >; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests3_test.cpp:33:71: required from here
./stan/math/prim/fun/add.hpp:77:26: error: ‘stan::complex_return_t<double, Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, 1, -1, 1, 1, -1>, 1, -1, false> > > >’ {aka ‘struct std::complex<double>’} has no member named ‘matrix’
77 | return (c + m.array()).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests3_test.cpp: In member function ‘virtual void ExpressionTestPrim_add6_Test::TestBody()’:
test/expressions/tests3_test.cpp:33:72: error: invalid use of void expression
33 | auto result5 = stan::math::eval(stan::math::add(complex0,matrix1_expr2));
| ^
test/expressions/tests2_test.cpp: In member function ‘virtual void ExpressionTestRev_add5_Test::TestBody()’:
test/expressions/tests2_test.cpp:76:71: error: no matching function for call to ‘add(Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::var_value<double> >, const Eigen::Block<Eigen::Matrix<stan::math::var_value<double>, -1, -1>, -1, -1, false> >&, std::complex<stan::math::var_value<double> >&)’
76 | auto result5 = stan::math::eval(stan::math::add(matrix0_expr2,complex1));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
./stan/math/prim/fun/add.hpp:23:40: note: candidate: ‘template<class ScalarA, class ScalarB, stan::require_all_stan_scalar_t<T_y, T_high>* <anonymous>, stan::require_all_not_var_t<ScalarA, ScalarB>* <anonymous> > stan::return_type_t<T1, T2> stan::math::add(const ScalarA&, const ScalarB&)’
23 | inline return_type_t<ScalarA, ScalarB> add(const ScalarA& a, const ScalarB& b) {
| ^~~
./stan/math/prim/fun/add.hpp:23:40: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:43:13: note: candidate: ‘template<class Mat1, class Mat2, stan::require_all_eigen_t<T_desired, T_actual>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(const Mat1&, const Mat2&)’
43 | inline auto add(const Mat1& m1, const Mat2& m2) {
| ^~~
./stan/math/prim/fun/add.hpp:43:13: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:60:13: note: candidate: ‘template<class Mat, class Scal, stan::require_eigen_t<T_desired>* <anonymous>, stan::require_stan_scalar_t<V>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(const Mat&, Scal)’
60 | inline auto add(const Mat& m, const Scal c) {
| ^~~
./stan/math/prim/fun/add.hpp:60:13: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:76:13: note: candidate: ‘template<class Scal, class Mat, stan::require_stan_scalar_t<U>* <anonymous>, stan::require_eigen_t<S>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(Scal, const Mat&)’
76 | inline auto add(const Scal c, const Mat& m) {
| ^~~
./stan/math/prim/fun/add.hpp:76:13: note: template argument deduction/substitution failed:
In file included from ./stan/math/rev/core.hpp:28,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests2_test.cpp:1:
./stan/math/rev/core/operator_addition.hpp:111:13: note: candidate: ‘template<class VarMat1, class VarMat2, stan::require_all_rev_matrix_t<VarMat1, VarMat2>* <anonymous> > auto stan::math::add(const VarMat1&, const VarMat2&)’
111 | inline auto add(const VarMat1& a, const VarMat2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:111:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:142:13: note: candidate: ‘template<class Arith, class VarMat, stan::require_st_arithmetic<T>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const VarMat&, const Arith&)’
142 | inline auto add(const VarMat& a, const Arith& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:142:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:168:13: note: candidate: ‘template<class Arith, class VarMat, stan::require_st_arithmetic<T>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const Arith&, const VarMat&)’
168 | inline auto add(const Arith& a, const VarMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:168:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:184:13: note: candidate: ‘template<class Var, class EigMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_eigen_vt<std::is_arithmetic, EigMat>* <anonymous> > auto stan::math::add(const Var&, const EigMat&)’
184 | inline auto add(const Var& a, const EigMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:184:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:203:13: note: candidate: ‘template<class EigMat, class Var, stan::require_eigen_vt<std::is_arithmetic, T>* <anonymous>, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous> > auto stan::math::add(const EigMat&, const Var&)’
203 | inline auto add(const EigMat& a, const Var& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:203:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:220:13: note: candidate: ‘template<class Var, class VarMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const Var&, const VarMat&)’
220 | inline auto add(const Var& a, const VarMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:220:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:249:13: note: candidate: ‘template<class Var, class VarMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const VarMat&, const Var&)’
249 | inline auto add(const VarMat& a, const Var& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:249:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:256:13: note: candidate: ‘template<class T1, class T2, stan::require_any_var_vt<std::is_arithmetic, T1, T2>* <anonymous>, stan::require_any_arithmetic_t<T1, T2>* <anonymous> > auto stan::math::add(const T1&, const T2&)’
256 | inline auto add(const T1& a, const T2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:256:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:262:13: note: candidate: ‘template<class T1, class T2, stan::require_all_var_vt<std::is_arithmetic, T1, T2>* <anonymous> > auto stan::math::add(const T1&, const T2&)’
262 | inline auto add(const T1& a, const T2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:262:13: note: template argument deduction/substitution failed:
test/expressions/tests2_test.cpp:77:65: error: no matching function for call to ‘add(Eigen::Matrix<stan::math::var_value<double>, -1, -1>&, std::complex<stan::math::var_value<double> >&)’
77 | auto result6 = stan::math::eval(stan::math::add(matrix3,complex4));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
./stan/math/prim/fun/add.hpp:23:40: note: candidate: ‘template<class ScalarA, class ScalarB, stan::require_all_stan_scalar_t<T_y, T_high>* <anonymous>, stan::require_all_not_var_t<ScalarA, ScalarB>* <anonymous> > stan::return_type_t<T1, T2> stan::math::add(const ScalarA&, const ScalarB&)’
23 | inline return_type_t<ScalarA, ScalarB> add(const ScalarA& a, const ScalarB& b) {
| ^~~
./stan/math/prim/fun/add.hpp:23:40: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:43:13: note: candidate: ‘template<class Mat1, class Mat2, stan::require_all_eigen_t<T_desired, T_actual>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(const Mat1&, const Mat2&)’
43 | inline auto add(const Mat1& m1, const Mat2& m2) {
| ^~~
./stan/math/prim/fun/add.hpp:43:13: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:60:13: note: candidate: ‘template<class Mat, class Scal, stan::require_eigen_t<T_desired>* <anonymous>, stan::require_stan_scalar_t<V>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(const Mat&, Scal)’
60 | inline auto add(const Mat& m, const Scal c) {
| ^~~
./stan/math/prim/fun/add.hpp:60:13: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:76:13: note: candidate: ‘template<class Scal, class Mat, stan::require_stan_scalar_t<U>* <anonymous>, stan::require_eigen_t<S>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(Scal, const Mat&)’
76 | inline auto add(const Scal c, const Mat& m) {
| ^~~
./stan/math/prim/fun/add.hpp:76:13: note: template argument deduction/substitution failed:
In file included from ./stan/math/rev/core.hpp:28,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests2_test.cpp:1:
./stan/math/rev/core/operator_addition.hpp:111:13: note: candidate: ‘template<class VarMat1, class VarMat2, stan::require_all_rev_matrix_t<VarMat1, VarMat2>* <anonymous> > auto stan::math::add(const VarMat1&, const VarMat2&)’
111 | inline auto add(const VarMat1& a, const VarMat2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:111:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:142:13: note: candidate: ‘template<class Arith, class VarMat, stan::require_st_arithmetic<T>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const VarMat&, const Arith&)’
142 | inline auto add(const VarMat& a, const Arith& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:142:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:168:13: note: candidate: ‘template<class Arith, class VarMat, stan::require_st_arithmetic<T>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const Arith&, const VarMat&)’
168 | inline auto add(const Arith& a, const VarMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:168:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:184:13: note: candidate: ‘template<class Var, class EigMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_eigen_vt<std::is_arithmetic, EigMat>* <anonymous> > auto stan::math::add(const Var&, const EigMat&)’
184 | inline auto add(const Var& a, const EigMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:184:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:203:13: note: candidate: ‘template<class EigMat, class Var, stan::require_eigen_vt<std::is_arithmetic, T>* <anonymous>, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous> > auto stan::math::add(const EigMat&, const Var&)’
203 | inline auto add(const EigMat& a, const Var& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:203:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:220:13: note: candidate: ‘template<class Var, class VarMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const Var&, const VarMat&)’
220 | inline auto add(const Var& a, const VarMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:220:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:249:13: note: candidate: ‘template<class Var, class VarMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const VarMat&, const Var&)’
249 | inline auto add(const VarMat& a, const Var& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:249:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:256:13: note: candidate: ‘template<class T1, class T2, stan::require_any_var_vt<std::is_arithmetic, T1, T2>* <anonymous>, stan::require_any_arithmetic_t<T1, T2>* <anonymous> > auto stan::math::add(const T1&, const T2&)’
256 | inline auto add(const T1& a, const T2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:256:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:262:13: note: candidate: ‘template<class T1, class T2, stan::require_all_var_vt<std::is_arithmetic, T1, T2>* <anonymous> > auto stan::math::add(const T1&, const T2&)’
262 | inline auto add(const T1& a, const T2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:262:13: note: template argument deduction/substitution failed:
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<double>; Mat = Eigen::Matrix<std::complex<double>, 1, -1>; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests3_test.cpp:34:65: required from here
./stan/math/prim/fun/add.hpp:77:26: error: ‘stan::complex_return_t<double, Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<double>, 1, -1, 1, 1, -1> > >’ {aka ‘struct std::complex<double>’} has no member named ‘matrix’
77 | return (c + m.array()).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests3_test.cpp:34:66: error: invalid use of void expression
34 | auto result6 = stan::math::eval(stan::math::add(complex3,matrix4));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<stan::math::var_value<double> >; Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1>, 1, -1, false> >; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests3_test.cpp:51:71: required from here
./stan/math/prim/fun/add.hpp:77:26: error: ‘stan::complex_return_t<stan::math::var_value<double, void>, Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double, void> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double, void> >, 1, -1, 1, 1, -1>, 1, -1, false> > > >’ {aka ‘class std::complex<stan::math::var_value<double> >’} has no member named ‘matrix’
77 | return (c + m.array()).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests3_test.cpp: In member function ‘virtual void ExpressionTestRev_add6_Test::TestBody()’:
test/expressions/tests3_test.cpp:51:72: error: invalid use of void expression
51 | auto result5 = stan::math::eval(stan::math::add(complex0,matrix1_expr2));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<stan::math::var_value<double> >; Mat = Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1>; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests3_test.cpp:52:65: required from here
./stan/math/prim/fun/add.hpp:77:26: error: ‘stan::complex_return_t<stan::math::var_value<double, void>, Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::var_value<double, void> >, 1, -1, 1, 1, -1> > >’ {aka ‘class std::complex<stan::math::var_value<double> >’} has no member named ‘matrix’
77 | return (c + m.array()).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests3_test.cpp:52:66: error: invalid use of void expression
52 | auto result6 = stan::math::eval(stan::math::add(complex3,matrix4));
| ^
In file included from ./stan/math/rev/core/std_complex.hpp:5,
from ./stan/math/rev/core/operator_division.hpp:11,
from ./stan/math/rev/core/operator_divide_equal.hpp:5,
from ./stan/math/rev/core.hpp:29,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests4_test.cpp:1:
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_type& stan::math::complex_base<ValueType>::operator+=(const U&) [with U = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, 1, 0, -1, 1>, -1, 1, false> > >; ValueType = stan::math::var_value<double>; stan::math::complex_base<ValueType>::complex_type = std::complex<stan::math::var_value<double> >]’:
./stan/math/prim/core/operator_addition.hpp:24:5: required from ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = std::complex<stan::math::var_value<double> >; V = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, 1, 0, -1, 1>, -1, 1, false> > >; stan::complex_return_t<U, V> = std::complex<stan::math::var_value<double> >; typename stan::real_return<U, V>::type = stan::math::var_value<double>]’
./stan/math/prim/core/operator_addition.hpp:55:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const std::complex<_Tp>&, const V&) [with U = stan::math::var_value<double>; V = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, 1, 0, -1, 1>, -1, 1, false> > >; stan::complex_return_t<U, V> = std::complex<stan::math::var_value<double> >; typename stan::real_return<U, V>::type = stan::math::var_value<double>]’
./stan/math/prim/fun/add.hpp:77:13: required from ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<stan::math::var_value<double> >; Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, 1, 0, -1, 1>, -1, 1, false> >; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests4_test.cpp:33:71: required from here
./stan/math/prim/core/complex_base.hpp:109:9: error: no match for ‘operator+=’ (operand types are ‘stan::math::complex_base<stan::math::var_value<double> >::value_type’ {aka ‘stan::math::var_value<double>’} and ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, 1, 0, -1, 1>, -1, 1, false> > >’)
109 | re_ += x;
| ~~~~^~~~
In file included from ./stan/math/rev/core.hpp:42,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests4_test.cpp:1:
./stan/math/rev/core/operator_plus_equal.hpp:12:22: note: candidate: ‘stan::math::var_value<T>& stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::operator+=(const stan::math::var_value<T>&) [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void]’
12 | inline var_value<T>& var_value<T, require_floating_point_t<T>>::operator+=(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./stan/math/rev/meta/conditional_var_value.hpp:4,
from ./stan/math/rev/meta.hpp:6,
from ./stan/math/rev/core/accumulate_adjoints.hpp:5,
from ./stan/math/rev/core.hpp:4,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests4_test.cpp:1:
./stan/math/rev/core/var.hpp:191:55: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, 1, 0, -1, 1>, -1, 1, false> > >’ to ‘const stan::math::var_value<double>&’
191 | inline var_value<T>& operator+=(const var_value<T>& b);
| ~~~~~~~~~~~~~~~~~~~~^
In file included from ./stan/math/rev/core.hpp:42,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests4_test.cpp:1:
./stan/math/rev/core/operator_plus_equal.hpp:19:22: note: candidate: ‘stan::math::var_value<T>& stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::operator+=(T) [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void]’
19 | inline var_value<T>& var_value<T, require_floating_point_t<T>>::operator+=(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./stan/math/rev/meta/conditional_var_value.hpp:4,
from ./stan/math/rev/meta.hpp:6,
from ./stan/math/rev/core/accumulate_adjoints.hpp:5,
from ./stan/math/rev/core.hpp:4,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests4_test.cpp:1:
./stan/math/rev/core/var.hpp:203:37: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, 1, 0, -1, 1>, -1, 1, false> > >’ to ‘double’
203 | inline var_value<T>& operator+=(T b);
| ~~^
In file included from ./stan/math/rev/core/std_complex.hpp:5,
from ./stan/math/rev/core/operator_division.hpp:11,
from ./stan/math/rev/core/operator_divide_equal.hpp:5,
from ./stan/math/rev/core.hpp:29,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests4_test.cpp:1:
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_type& stan::math::complex_base<ValueType>::operator+=(const U&) [with U = Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, 1, 0, -1, 1> >; ValueType = stan::math::var_value<double>; stan::math::complex_base<ValueType>::complex_type = std::complex<stan::math::var_value<double> >]’:
./stan/math/prim/core/operator_addition.hpp:24:5: required from ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = std::complex<stan::math::var_value<double> >; V = Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, 1, 0, -1, 1> >; stan::complex_return_t<U, V> = std::complex<stan::math::var_value<double> >; typename stan::real_return<U, V>::type = stan::math::var_value<double>]’
./stan/math/prim/core/operator_addition.hpp:55:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const std::complex<_Tp>&, const V&) [with U = stan::math::var_value<double>; V = Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, 1, 0, -1, 1> >; stan::complex_return_t<U, V> = std::complex<stan::math::var_value<double> >; typename stan::real_return<U, V>::type = stan::math::var_value<double>]’
./stan/math/prim/fun/add.hpp:77:13: required from ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<stan::math::var_value<double> >; Mat = Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, 1, 0, -1, 1>; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests4_test.cpp:34:65: required from here
./stan/math/prim/core/complex_base.hpp:109:9: error: no match for ‘operator+=’ (operand types are ‘stan::math::complex_base<stan::math::var_value<double> >::value_type’ {aka ‘stan::math::var_value<double>’} and ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, 1, 0, -1, 1> >’)
109 | re_ += x;
| ~~~~^~~~
In file included from ./stan/math/rev/core.hpp:42,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests4_test.cpp:1:
./stan/math/rev/core/operator_plus_equal.hpp:12:22: note: candidate: ‘stan::math::var_value<T>& stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::operator+=(const stan::math::var_value<T>&) [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void]’
12 | inline var_value<T>& var_value<T, require_floating_point_t<T>>::operator+=(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./stan/math/rev/meta/conditional_var_value.hpp:4,
from ./stan/math/rev/meta.hpp:6,
from ./stan/math/rev/core/accumulate_adjoints.hpp:5,
from ./stan/math/rev/core.hpp:4,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests4_test.cpp:1:
./stan/math/rev/core/var.hpp:191:55: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, 1, 0, -1, 1> >’ to ‘const stan::math::var_value<double>&’
191 | inline var_value<T>& operator+=(const var_value<T>& b);
| ~~~~~~~~~~~~~~~~~~~~^
In file included from ./stan/math/rev/core.hpp:42,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests4_test.cpp:1:
./stan/math/rev/core/operator_plus_equal.hpp:19:22: note: candidate: ‘stan::math::var_value<T>& stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::operator+=(T) [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void]’
19 | inline var_value<T>& var_value<T, require_floating_point_t<T>>::operator+=(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./stan/math/rev/meta/conditional_var_value.hpp:4,
from ./stan/math/rev/meta.hpp:6,
from ./stan/math/rev/core/accumulate_adjoints.hpp:5,
from ./stan/math/rev/core.hpp:4,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests4_test.cpp:1:
./stan/math/rev/core/var.hpp:203:37: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, 1, 0, -1, 1> >’ to ‘double’
203 | inline var_value<T>& operator+=(T b);
| ~~^
test/expressions/tests5_test.cpp: In member function ‘virtual void ExpressionTestRev_add9_Test::TestBody()’:
test/expressions/tests5_test.cpp:94:76: error: no matching function for call to ‘add(Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1>, 1, -1, false> >&, Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::var_value<double> >, const Eigen::Block<Eigen::Matrix<stan::math::var_value<double>, 1, -1>, 1, -1, false> >&)’
94 | auto result6 = stan::math::eval(stan::math::add(matrix0_expr2,matrix1_expr3));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests5_test.cpp:1:
./stan/math/prim/fun/add.hpp:23:40: note: candidate: ‘template<class ScalarA, class ScalarB, stan::require_all_stan_scalar_t<T_y, T_high>* <anonymous>, stan::require_all_not_var_t<ScalarA, ScalarB>* <anonymous> > stan::return_type_t<T1, T2> stan::math::add(const ScalarA&, const ScalarB&)’
23 | inline return_type_t<ScalarA, ScalarB> add(const ScalarA& a, const ScalarB& b) {
| ^~~
./stan/math/prim/fun/add.hpp:23:40: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/memory:62,
from lib/benchmark_1.5.1/googletest/googletest/include/gtest/gtest.h:57,
from ./test/expressions/expression_test_helpers.hpp:1,
from test/expressions/tests5_test.cpp:1:
/usr/include/c++/9/type_traits: In substitution of ‘template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = std::integral_constant<bool, false>::value; _Tp = void]’:
./stan/math/prim/meta/require_helpers.hpp:34:7: required by substitution of ‘template<class ... Checks> using require_all_t = std::enable_if_t<stan::math::conjunction<T>::value> [with Checks = {stan::is_stan_scalar<Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double, void> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double, void> >, 1, -1, 1, 1, -1>, 1, -1, false> > >, stan::is_stan_scalar<Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::var_value<double, void> >, const Eigen::Block<Eigen::Matrix<stan::math::var_value<double, void>, 1, -1, 1, 1, -1>, 1, -1, false> > >}]’
./stan/math/prim/meta/is_stan_scalar.hpp:31:1: required by substitution of ‘template<class ... Types> using require_all_stan_scalar_t = stan::require_all_t<stan::is_stan_scalar<typename std::decay<Types>::type>...> [with Types = {Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double, void> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double, void> >, 1, -1, 1, 1, -1>, 1, -1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::var_value<double, void> >, const Eigen::Block<Eigen::Matrix<stan::math::var_value<double, void>, 1, -1, 1, 1, -1>, 1, -1, false> >}]’
./stan/math/prim/fun/add.hpp:21:58: required from here
/usr/include/c++/9/type_traits:2378:11: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
2378 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests5_test.cpp:1:
./stan/math/prim/fun/add.hpp:43:13: note: candidate: ‘template<class Mat1, class Mat2, stan::require_all_eigen_t<T_desired, T_actual>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(const Mat1&, const Mat2&)’
43 | inline auto add(const Mat1& m1, const Mat2& m2) {
| ^~~
./stan/math/prim/fun/add.hpp:43:13: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:60:13: note: candidate: ‘template<class Mat, class Scal, stan::require_eigen_t<T_desired>* <anonymous>, stan::require_stan_scalar_t<V>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(const Mat&, Scal)’
60 | inline auto add(const Mat& m, const Scal c) {
| ^~~
./stan/math/prim/fun/add.hpp:60:13: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:76:13: note: candidate: ‘template<class Scal, class Mat, stan::require_stan_scalar_t<U>* <anonymous>, stan::require_eigen_t<S>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(Scal, const Mat&)’
76 | inline auto add(const Scal c, const Mat& m) {
| ^~~
./stan/math/prim/fun/add.hpp:76:13: note: template argument deduction/substitution failed:
In file included from ./stan/math/rev/core.hpp:28,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests5_test.cpp:1:
./stan/math/rev/core/operator_addition.hpp:111:13: note: candidate: ‘template<class VarMat1, class VarMat2, stan::require_all_rev_matrix_t<VarMat1, VarMat2>* <anonymous> > auto stan::math::add(const VarMat1&, const VarMat2&)’
111 | inline auto add(const VarMat1& a, const VarMat2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:111:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:142:13: note: candidate: ‘template<class Arith, class VarMat, stan::require_st_arithmetic<T>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const VarMat&, const Arith&)’
142 | inline auto add(const VarMat& a, const Arith& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:142:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:168:13: note: candidate: ‘template<class Arith, class VarMat, stan::require_st_arithmetic<T>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const Arith&, const VarMat&)’
168 | inline auto add(const Arith& a, const VarMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:168:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:184:13: note: candidate: ‘template<class Var, class EigMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_eigen_vt<std::is_arithmetic, EigMat>* <anonymous> > auto stan::math::add(const Var&, const EigMat&)’
184 | inline auto add(const Var& a, const EigMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:184:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:203:13: note: candidate: ‘template<class EigMat, class Var, stan::require_eigen_vt<std::is_arithmetic, T>* <anonymous>, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous> > auto stan::math::add(const EigMat&, const Var&)’
203 | inline auto add(const EigMat& a, const Var& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:203:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:220:13: note: candidate: ‘template<class Var, class VarMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const Var&, const VarMat&)’
220 | inline auto add(const Var& a, const VarMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:220:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:249:13: note: candidate: ‘template<class Var, class VarMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const VarMat&, const Var&)’
249 | inline auto add(const VarMat& a, const Var& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:249:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:256:13: note: candidate: ‘template<class T1, class T2, stan::require_any_var_vt<std::is_arithmetic, T1, T2>* <anonymous>, stan::require_any_arithmetic_t<T1, T2>* <anonymous> > auto stan::math::add(const T1&, const T2&)’
256 | inline auto add(const T1& a, const T2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:256:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:262:13: note: candidate: ‘template<class T1, class T2, stan::require_all_var_vt<std::is_arithmetic, T1, T2>* <anonymous> > auto stan::math::add(const T1&, const T2&)’
262 | inline auto add(const T1& a, const T2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:262:13: note: template argument deduction/substitution failed:
test/expressions/tests5_test.cpp:95:64: error: no matching function for call to ‘add(Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1>&, Eigen::Matrix<stan::math::var_value<double>, 1, -1>&)’
95 | auto result7 = stan::math::eval(stan::math::add(matrix4,matrix5));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests5_test.cpp:1:
./stan/math/prim/fun/add.hpp:23:40: note: candidate: ‘template<class ScalarA, class ScalarB, stan::require_all_stan_scalar_t<T_y, T_high>* <anonymous>, stan::require_all_not_var_t<ScalarA, ScalarB>* <anonymous> > stan::return_type_t<T1, T2> stan::math::add(const ScalarA&, const ScalarB&)’
23 | inline return_type_t<ScalarA, ScalarB> add(const ScalarA& a, const ScalarB& b) {
| ^~~
./stan/math/prim/fun/add.hpp:23:40: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:43:13: note: candidate: ‘template<class Mat1, class Mat2, stan::require_all_eigen_t<T_desired, T_actual>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(const Mat1&, const Mat2&)’
43 | inline auto add(const Mat1& m1, const Mat2& m2) {
| ^~~
./stan/math/prim/fun/add.hpp:43:13: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:60:13: note: candidate: ‘template<class Mat, class Scal, stan::require_eigen_t<T_desired>* <anonymous>, stan::require_stan_scalar_t<V>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(const Mat&, Scal)’
60 | inline auto add(const Mat& m, const Scal c) {
| ^~~
./stan/math/prim/fun/add.hpp:60:13: note: template argument deduction/substitution failed:
In file included from ./stan/math/rev/core/std_complex.hpp:5,
from ./stan/math/rev/core/operator_division.hpp:11,
from ./stan/math/rev/core/operator_divide_equal.hpp:5,
from ./stan/math/rev/core.hpp:29,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests4_test.cpp:1:
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_type& stan::math::complex_base<ValueType>::operator+=(const U&) [with U = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1>, -1, 1, false> > >; ValueType = stan::math::fvar<double>; stan::math::complex_base<ValueType>::complex_type = std::complex<stan::math::fvar<double> >]’:
./stan/math/prim/core/operator_addition.hpp:24:5: required from ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = std::complex<stan::math::fvar<double> >; V = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1>, -1, 1, false> > >; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’
./stan/math/prim/core/operator_addition.hpp:55:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const std::complex<_Tp>&, const V&) [with U = stan::math::fvar<double>; V = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1>, -1, 1, false> > >; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’
./stan/math/prim/fun/add.hpp:77:13: required from ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<stan::math::fvar<double> >; Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1>, -1, 1, false> >; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests4_test.cpp:58:71: required from here
./stan/math/prim/core/complex_base.hpp:109:9: error: no match for ‘operator+=’ (operand types are ‘stan::math::complex_base<stan::math::fvar<double> >::value_type’ {aka ‘stan::math::fvar<double>’} and ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1>, -1, 1, false> > >’)
109 | re_ += x;
| ~~~~^~~~
./stan/math/prim/fun/add.hpp:76:13: note: candidate: ‘template<class Scal, class Mat, stan::require_stan_scalar_t<U>* <anonymous>, stan::require_eigen_t<S>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(Scal, const Mat&)’
76 | inline auto add(const Scal c, const Mat& m) {
| ^~~
./stan/math/prim/fun/add.hpp:76:13: note: template argument deduction/substitution failed:
In file included from ./stan/math/rev/core.hpp:28,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests5_test.cpp:1:
./stan/math/rev/core/operator_addition.hpp:111:13: note: candidate: ‘template<class VarMat1, class VarMat2, stan::require_all_rev_matrix_t<VarMat1, VarMat2>* <anonymous> > auto stan::math::add(const VarMat1&, const VarMat2&)’
111 | inline auto add(const VarMat1& a, const VarMat2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:111:13: note: template argument deduction/substitution failed:
In file included from ./stan/math/fwd/core.hpp:4,
from ./stan/math/fwd.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:4,
from test/expressions/tests4_test.cpp:1:
./stan/math/fwd/core/fvar.hpp:112:19: note: candidate: ‘stan::math::fvar<T>& stan::math::fvar<T>::operator+=(const stan::math::fvar<T>&) [with T = double]’
112 | inline fvar<T>& operator+=(const fvar<T>& x2) {
| ^~~~~~~~
./stan/math/fwd/core/fvar.hpp:112:45: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1>, -1, 1, false> > >’ to ‘const stan::math::fvar<double>&’
112 | inline fvar<T>& operator+=(const fvar<T>& x2) {
| ~~~~~~~~~~~~~~~^~
./stan/math/fwd/core/fvar.hpp:125:19: note: candidate: ‘stan::math::fvar<T>& stan::math::fvar<T>::operator+=(double) [with T = double]’
125 | inline fvar<T>& operator+=(double x2) {
| ^~~~~~~~
./stan/math/fwd/core/fvar.hpp:125:37: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1>, -1, 1, false> > >’ to ‘double’
125 | inline fvar<T>& operator+=(double x2) {
| ~~~~~~~^~
In file included from ./stan/math/rev/core/std_complex.hpp:5,
from ./stan/math/rev/core/operator_division.hpp:11,
from ./stan/math/rev/core/operator_divide_equal.hpp:5,
from ./stan/math/rev/core.hpp:29,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests4_test.cpp:1:
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_type& stan::math::complex_base<ValueType>::operator+=(const U&) [with U = Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1> >; ValueType = stan::math::fvar<double>; stan::math::complex_base<ValueType>::complex_type = std::complex<stan::math::fvar<double> >]’:
./stan/math/prim/core/operator_addition.hpp:24:5: required from ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = std::complex<stan::math::fvar<double> >; V = Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1> >; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’
./stan/math/prim/core/operator_addition.hpp:55:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const std::complex<_Tp>&, const V&) [with U = stan::math::fvar<double>; V = Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1> >; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’
./stan/math/prim/fun/add.hpp:77:13: required from ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<stan::math::fvar<double> >; Mat = Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1>; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests4_test.cpp:59:65: required from here
./stan/math/prim/core/complex_base.hpp:109:9: error: no match for ‘operator+=’ (operand types are ‘stan::math::complex_base<stan::math::fvar<double> >::value_type’ {aka ‘stan::math::fvar<double>’} and ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1> >’)
109 | re_ += x;
| ~~~~^~~~
In file included from ./stan/math/fwd/core.hpp:4,
from ./stan/math/fwd.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:4,
from test/expressions/tests4_test.cpp:1:
./stan/math/fwd/core/fvar.hpp:112:19: note: candidate: ‘stan::math::fvar<T>& stan::math::fvar<T>::operator+=(const stan::math::fvar<T>&) [with T = double]’
112 | inline fvar<T>& operator+=(const fvar<T>& x2) {
| ^~~~~~~~
./stan/math/fwd/core/fvar.hpp:112:45: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1> >’ to ‘const stan::math::fvar<double>&’
112 | inline fvar<T>& operator+=(const fvar<T>& x2) {
| ~~~~~~~~~~~~~~~^~
./stan/math/fwd/core/fvar.hpp:125:19: note: candidate: ‘stan::math::fvar<T>& stan::math::fvar<T>::operator+=(double) [with T = double]’
125 | inline fvar<T>& operator+=(double x2) {
| ^~~~~~~~
./stan/math/fwd/core/fvar.hpp:125:37: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::fvar<double> >, -1, 1> >’ to ‘double’
125 | inline fvar<T>& operator+=(double x2) {
| ~~~~~~~^~
./stan/math/rev/core/operator_addition.hpp:142:13: note: candidate: ‘template<class Arith, class VarMat, stan::require_st_arithmetic<T>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const VarMat&, const Arith&)’
142 | inline auto add(const VarMat& a, const Arith& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:142:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:168:13: note: candidate: ‘template<class Arith, class VarMat, stan::require_st_arithmetic<T>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const Arith&, const VarMat&)’
168 | inline auto add(const Arith& a, const VarMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:168:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:184:13: note: candidate: ‘template<class Var, class EigMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_eigen_vt<std::is_arithmetic, EigMat>* <anonymous> > auto stan::math::add(const Var&, const EigMat&)’
184 | inline auto add(const Var& a, const EigMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:184:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:203:13: note: candidate: ‘template<class EigMat, class Var, stan::require_eigen_vt<std::is_arithmetic, T>* <anonymous>, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous> > auto stan::math::add(const EigMat&, const Var&)’
203 | inline auto add(const EigMat& a, const Var& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:203:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:220:13: note: candidate: ‘template<class Var, class VarMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const Var&, const VarMat&)’
220 | inline auto add(const Var& a, const VarMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:220:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:249:13: note: candidate: ‘template<class Var, class VarMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const VarMat&, const Var&)’
249 | inline auto add(const VarMat& a, const Var& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:249:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:256:13: note: candidate: ‘template<class T1, class T2, stan::require_any_var_vt<std::is_arithmetic, T1, T2>* <anonymous>, stan::require_any_arithmetic_t<T1, T2>* <anonymous> > auto stan::math::add(const T1&, const T2&)’
256 | inline auto add(const T1& a, const T2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:256:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:262:13: note: candidate: ‘template<class T1, class T2, stan::require_all_var_vt<std::is_arithmetic, T1, T2>* <anonymous> > auto stan::math::add(const T1&, const T2&)’
262 | inline auto add(const T1& a, const T2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:262:13: note: template argument deduction/substitution failed:
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<stan::math::fvar<double> >; Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1>, 1, -1, false> >; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests3_test.cpp:76:71: required from here
./stan/math/prim/fun/add.hpp:77:26: error: ‘stan::complex_return_t<stan::math::fvar<double>, Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1, 1, 1, -1>, 1, -1, false> > > >’ {aka ‘struct std::complex<stan::math::fvar<double> >’} has no member named ‘matrix’
77 | return (c + m.array()).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests3_test.cpp: In member function ‘virtual void ExpressionTestFwd_add6_Test::TestBody()’:
test/expressions/tests3_test.cpp:76:72: error: invalid use of void expression
76 | auto result5 = stan::math::eval(stan::math::add(complex0,matrix1_expr2));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/fun/add.hpp: In instantiation of ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<stan::math::fvar<double> >; Mat = Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1>; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’:
test/expressions/tests3_test.cpp:77:65: required from here
./stan/math/prim/fun/add.hpp:77:26: error: ‘stan::complex_return_t<stan::math::fvar<double>, Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1, 1, 1, -1> > >’ {aka ‘struct std::complex<stan::math::fvar<double> >’} has no member named ‘matrix’
77 | return (c + m.array()).matrix();
| ~~~~~~~~~~~~~~~~^~~~~~
test/expressions/tests3_test.cpp:77:66: error: invalid use of void expression
77 | auto result6 = stan::math::eval(stan::math::add(complex3,matrix4));
| ^
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests1_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp: In instantiation of ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, 1>, -1, 1, false> > >; V = std::complex<double>; stan::complex_return_t<U, V> = std::complex<double>; typename stan::real_return<U, V>::type = double]’:
./stan/math/prim/core/operator_addition.hpp:69:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const U&, const std::complex<_Up>&) [with U = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, 1>, -1, 1, false> > >; V = double; stan::complex_return_t<U, V> = std::complex<double>; typename stan::real_return<U, V>::type = double]’
./stan/math/prim/fun/add.hpp:61:21: required from ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, 1>, -1, 1, false> >; Scal = std::complex<double>; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests1_test.cpp:91:71: required from here
./stan/math/prim/core/operator_addition.hpp:23:26: error: no matching function for call to ‘std::complex<double>::complex(const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, 1>, -1, 1, false> > >&)’
23 | complex_return_t<U, V> y(lhs);
| ^
In file included from lib/eigen_3.3.9/Eigen/Core:96,
from lib/eigen_3.3.9/Eigen/Dense:1,
from ./stan/math/prim/fun/Eigen.hpp:22,
from ./stan/math/prim/meta/append_return_type.hpp:4,
from ./stan/math/prim/meta.hpp:176,
from ./stan/math/prim/err/invalid_argument.hpp:4,
from ./stan/math/prim/core/init_threadpool_tbb.hpp:4,
from ./stan/math/prim/core.hpp:4,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests1_test.cpp:1:
/usr/include/c++/9/complex:1525:3: note: candidate: ‘constexpr std::complex<double>::complex(const std::complex<long double>&)’
1525 | complex<double>::complex(const complex<long double>& __z)
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/complex:1525:56: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, 1>, -1, 1, false> > >’ to ‘const std::complex<long double>&’
1525 | complex<double>::complex(const complex<long double>& __z)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/complex:1242:26: note: candidate: ‘constexpr std::complex<double>::complex(const std::complex<float>&)’
1242 | _GLIBCXX_CONSTEXPR complex(const complex<float>& __z)
| ^~~~~~~
/usr/include/c++/9/complex:1242:56: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, 1>, -1, 1, false> > >’ to ‘const std::complex<float>&’
1242 | _GLIBCXX_CONSTEXPR complex(const complex<float>& __z)
| ~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/complex:1232:26: note: candidate: ‘constexpr std::complex<double>::complex(double, double)’
1232 | _GLIBCXX_CONSTEXPR complex(double __r = 0.0, double __i = 0.0)
| ^~~~~~~
/usr/include/c++/9/complex:1232:41: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, 1>, -1, 1, false> > >’ to ‘double’
1232 | _GLIBCXX_CONSTEXPR complex(double __r = 0.0, double __i = 0.0)
| ~~~~~~~^~~~~~~~~
/usr/include/c++/9/complex:1230:26: note: candidate: ‘constexpr std::complex<double>::complex(std::complex<double>::_ComplexT)’
1230 | _GLIBCXX_CONSTEXPR complex(_ComplexT __z) : _M_value(__z) { }
| ^~~~~~~
/usr/include/c++/9/complex:1230:44: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, 1>, -1, 1, false> > >’ to ‘std::complex<double>::_ComplexT’ {aka ‘__complex__ double’}
1230 | _GLIBCXX_CONSTEXPR complex(_ComplexT __z) : _M_value(__z) { }
| ~~~~~~~~~~^~~
/usr/include/c++/9/complex:1225:12: note: candidate: ‘constexpr std::complex<double>::complex(const std::complex<double>&)’
1225 | struct complex<double>
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/complex:1225:12: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, 1>, -1, 1, false> > >’ to ‘const std::complex<double>&’
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests1_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp: In instantiation of ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1> >; V = std::complex<double>; stan::complex_return_t<U, V> = std::complex<double>; typename stan::real_return<U, V>::type = double]’:
./stan/math/prim/core/operator_addition.hpp:69:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const U&, const std::complex<_Up>&) [with U = Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1> >; V = double; stan::complex_return_t<U, V> = std::complex<double>; typename stan::real_return<U, V>::type = double]’
./stan/math/prim/fun/add.hpp:61:21: required from ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::Matrix<double, -1, 1>; Scal = std::complex<double>; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests1_test.cpp:92:65: required from here
./stan/math/prim/core/operator_addition.hpp:23:26: error: no matching function for call to ‘std::complex<double>::complex(const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1> >&)’
23 | complex_return_t<U, V> y(lhs);
| ^
In file included from lib/eigen_3.3.9/Eigen/Core:96,
from lib/eigen_3.3.9/Eigen/Dense:1,
from ./stan/math/prim/fun/Eigen.hpp:22,
from ./stan/math/prim/meta/append_return_type.hpp:4,
from ./stan/math/prim/meta.hpp:176,
from ./stan/math/prim/err/invalid_argument.hpp:4,
from ./stan/math/prim/core/init_threadpool_tbb.hpp:4,
from ./stan/math/prim/core.hpp:4,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests1_test.cpp:1:
/usr/include/c++/9/complex:1525:3: note: candidate: ‘constexpr std::complex<double>::complex(const std::complex<long double>&)’
1525 | complex<double>::complex(const complex<long double>& __z)
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/complex:1525:56: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1> >’ to ‘const std::complex<long double>&’
1525 | complex<double>::complex(const complex<long double>& __z)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/complex:1242:26: note: candidate: ‘constexpr std::complex<double>::complex(const std::complex<float>&)’
1242 | _GLIBCXX_CONSTEXPR complex(const complex<float>& __z)
| ^~~~~~~
/usr/include/c++/9/complex:1242:56: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1> >’ to ‘const std::complex<float>&’
1242 | _GLIBCXX_CONSTEXPR complex(const complex<float>& __z)
| ~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/complex:1232:26: note: candidate: ‘constexpr std::complex<double>::complex(double, double)’
1232 | _GLIBCXX_CONSTEXPR complex(double __r = 0.0, double __i = 0.0)
| ^~~~~~~
/usr/include/c++/9/complex:1232:41: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1> >’ to ‘double’
1232 | _GLIBCXX_CONSTEXPR complex(double __r = 0.0, double __i = 0.0)
| ~~~~~~~^~~~~~~~~
/usr/include/c++/9/complex:1230:26: note: candidate: ‘constexpr std::complex<double>::complex(std::complex<double>::_ComplexT)’
1230 | _GLIBCXX_CONSTEXPR complex(_ComplexT __z) : _M_value(__z) { }
| ^~~~~~~
/usr/include/c++/9/complex:1230:44: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1> >’ to ‘std::complex<double>::_ComplexT’ {aka ‘__complex__ double’}
1230 | _GLIBCXX_CONSTEXPR complex(_ComplexT __z) : _M_value(__z) { }
| ~~~~~~~~~~^~~
/usr/include/c++/9/complex:1225:12: note: candidate: ‘constexpr std::complex<double>::complex(const std::complex<double>&)’
1225 | struct complex<double>
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/complex:1225:12: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, 1> >’ to ‘const std::complex<double>&’
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp: In instantiation of ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> > >; V = std::complex<stan::math::fvar<double> >; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’:
./stan/math/prim/core/operator_addition.hpp:69:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const U&, const std::complex<_Up>&) [with U = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> > >; V = stan::math::fvar<double>; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’
./stan/math/prim/fun/add.hpp:61:21: required from ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> >; Scal = std::complex<stan::math::fvar<double> >; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests2_test.cpp:40:71: required from here
./stan/math/prim/core/operator_addition.hpp:23:26: error: no matching function for call to ‘std::complex<stan::math::fvar<double> >::complex(const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> > >&)’
23 | complex_return_t<U, V> y(lhs);
| ^
In file included from ./stan/math/fwd/core.hpp:20,
from ./stan/math/fwd.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:4,
from test/expressions/tests2_test.cpp:1:
./stan/math/fwd/core/std_complex.hpp:52:3: note: candidate: ‘template<class U, class V> std::complex<stan::math::fvar<T> >::complex(const U&, const V&)’
52 | complex(const U& re, const V& im) : base_t(re, im) {}
| ^~~~~~~
./stan/math/fwd/core/std_complex.hpp:52:3: note: template argument deduction/substitution failed:
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp:23:26: note: candidate expects 2 arguments, 1 provided
23 | complex_return_t<U, V> y(lhs);
| ^
In file included from ./stan/math/fwd/core.hpp:20,
from ./stan/math/fwd.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:4,
from test/expressions/tests2_test.cpp:1:
./stan/math/fwd/core/std_complex.hpp:39:3: note: candidate: ‘template<class U> std::complex<stan::math::fvar<T> >::complex(const std::complex<_Up>&)’
39 | complex(const std::complex<U>& z) // NOLINT(runtime/explicit)
| ^~~~~~~
./stan/math/fwd/core/std_complex.hpp:39:3: note: template argument deduction/substitution failed:
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp:23:26: note: ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> > >’ is not derived from ‘const std::complex<_Tp>’
23 | complex_return_t<U, V> y(lhs);
| ^
In file included from ./stan/math/fwd/core.hpp:20,
from ./stan/math/fwd.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:4,
from test/expressions/tests2_test.cpp:1:
./stan/math/fwd/core/std_complex.hpp:36:3: note: candidate: ‘template<class U, class> std::complex<stan::math::fvar<T> >::complex(const U&)’
36 | complex(const U& re) : base_t(re) {} // NOLINT(runtime/explicit)
| ^~~~~~~
./stan/math/fwd/core/std_complex.hpp:36:3: note: template argument deduction/substitution failed:
./stan/math/fwd/core/std_complex.hpp:26:3: note: candidate: ‘constexpr std::complex<stan::math::fvar<T> >::complex() [with T = double]’
26 | complex() = default;
| ^~~~~~~
./stan/math/fwd/core/std_complex.hpp:26:3: note: candidate expects 0 arguments, 1 provided
./stan/math/fwd/core/std_complex.hpp:18:7: note: candidate: ‘std::complex<stan::math::fvar<double> >::complex(const std::complex<stan::math::fvar<double> >&)’
18 | class complex<stan::math::fvar<T>>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./stan/math/fwd/core/std_complex.hpp:18:7: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> > >’ to ‘const std::complex<stan::math::fvar<double> >&’
./stan/math/fwd/core/std_complex.hpp:18:7: note: candidate: ‘std::complex<stan::math::fvar<double> >::complex(std::complex<stan::math::fvar<double> >&&)’
./stan/math/fwd/core/std_complex.hpp:18:7: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, 1>, -1, 1, false> > >’ to ‘std::complex<stan::math::fvar<double> >&&’
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp: In instantiation of ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = Eigen::ArrayWrapper<const Eigen::Matrix<stan::math::fvar<double>, -1, 1> >; V = std::complex<stan::math::fvar<double> >; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’:
./stan/math/prim/core/operator_addition.hpp:69:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const U&, const std::complex<_Up>&) [with U = Eigen::ArrayWrapper<const Eigen::Matrix<stan::math::fvar<double>, -1, 1> >; V = stan::math::fvar<double>; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’
./stan/math/prim/fun/add.hpp:61:21: required from ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::Matrix<stan::math::fvar<double>, -1, 1>; Scal = std::complex<stan::math::fvar<double> >; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests2_test.cpp:41:65: required from here
./stan/math/prim/core/operator_addition.hpp:23:26: error: no matching function for call to ‘std::complex<stan::math::fvar<double> >::complex(const Eigen::ArrayWrapper<const Eigen::Matrix<stan::math::fvar<double>, -1, 1> >&)’
23 | complex_return_t<U, V> y(lhs);
| ^
In file included from ./stan/math/fwd/core.hpp:20,
from ./stan/math/fwd.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:4,
from test/expressions/tests2_test.cpp:1:
./stan/math/fwd/core/std_complex.hpp:52:3: note: candidate: ‘template<class U, class V> std::complex<stan::math::fvar<T> >::complex(const U&, const V&)’
52 | complex(const U& re, const V& im) : base_t(re, im) {}
| ^~~~~~~
./stan/math/fwd/core/std_complex.hpp:52:3: note: template argument deduction/substitution failed:
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp:23:26: note: candidate expects 2 arguments, 1 provided
23 | complex_return_t<U, V> y(lhs);
| ^
In file included from ./stan/math/fwd/core.hpp:20,
from ./stan/math/fwd.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:4,
from test/expressions/tests2_test.cpp:1:
./stan/math/fwd/core/std_complex.hpp:39:3: note: candidate: ‘template<class U> std::complex<stan::math::fvar<T> >::complex(const std::complex<_Up>&)’
39 | complex(const std::complex<U>& z) // NOLINT(runtime/explicit)
| ^~~~~~~
./stan/math/fwd/core/std_complex.hpp:39:3: note: template argument deduction/substitution failed:
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp:23:26: note: ‘const Eigen::ArrayWrapper<const Eigen::Matrix<stan::math::fvar<double>, -1, 1> >’ is not derived from ‘const std::complex<_Tp>’
23 | complex_return_t<U, V> y(lhs);
| ^
In file included from ./stan/math/fwd/core.hpp:20,
from ./stan/math/fwd.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:4,
from test/expressions/tests2_test.cpp:1:
./stan/math/fwd/core/std_complex.hpp:36:3: note: candidate: ‘template<class U, class> std::complex<stan::math::fvar<T> >::complex(const U&)’
36 | complex(const U& re) : base_t(re) {} // NOLINT(runtime/explicit)
| ^~~~~~~
./stan/math/fwd/core/std_complex.hpp:36:3: note: template argument deduction/substitution failed:
./stan/math/fwd/core/std_complex.hpp:26:3: note: candidate: ‘constexpr std::complex<stan::math::fvar<T> >::complex() [with T = double]’
26 | complex() = default;
| ^~~~~~~
./stan/math/fwd/core/std_complex.hpp:26:3: note: candidate expects 0 arguments, 1 provided
./stan/math/fwd/core/std_complex.hpp:18:7: note: candidate: ‘std::complex<stan::math::fvar<double> >::complex(const std::complex<stan::math::fvar<double> >&)’
18 | class complex<stan::math::fvar<T>>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./stan/math/fwd/core/std_complex.hpp:18:7: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<stan::math::fvar<double>, -1, 1> >’ to ‘const std::complex<stan::math::fvar<double> >&’
./stan/math/fwd/core/std_complex.hpp:18:7: note: candidate: ‘std::complex<stan::math::fvar<double> >::complex(std::complex<stan::math::fvar<double> >&&)’
./stan/math/fwd/core/std_complex.hpp:18:7: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<stan::math::fvar<double>, -1, 1> >’ to ‘std::complex<stan::math::fvar<double> >&&’
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp: In instantiation of ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, false> > >; V = std::complex<double>; stan::complex_return_t<U, V> = std::complex<double>; typename stan::real_return<U, V>::type = double]’:
./stan/math/prim/core/operator_addition.hpp:69:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const U&, const std::complex<_Up>&) [with U = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, false> > >; V = double; stan::complex_return_t<U, V> = std::complex<double>; typename stan::real_return<U, V>::type = double]’
./stan/math/prim/fun/add.hpp:61:21: required from ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, false> >; Scal = std::complex<double>; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests2_test.cpp:58:71: required from here
./stan/math/prim/core/operator_addition.hpp:23:26: error: no matching function for call to ‘std::complex<double>::complex(const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, false> > >&)’
23 | complex_return_t<U, V> y(lhs);
| ^
In file included from lib/eigen_3.3.9/Eigen/Core:96,
from lib/eigen_3.3.9/Eigen/Dense:1,
from ./stan/math/prim/fun/Eigen.hpp:22,
from ./stan/math/prim/meta/append_return_type.hpp:4,
from ./stan/math/prim/meta.hpp:176,
from ./stan/math/prim/err/invalid_argument.hpp:4,
from ./stan/math/prim/core/init_threadpool_tbb.hpp:4,
from ./stan/math/prim/core.hpp:4,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
/usr/include/c++/9/complex:1525:3: note: candidate: ‘constexpr std::complex<double>::complex(const std::complex<long double>&)’
1525 | complex<double>::complex(const complex<long double>& __z)
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/complex:1525:56: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, false> > >’ to ‘const std::complex<long double>&’
1525 | complex<double>::complex(const complex<long double>& __z)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/complex:1242:26: note: candidate: ‘constexpr std::complex<double>::complex(const std::complex<float>&)’
1242 | _GLIBCXX_CONSTEXPR complex(const complex<float>& __z)
| ^~~~~~~
/usr/include/c++/9/complex:1242:56: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, false> > >’ to ‘const std::complex<float>&’
1242 | _GLIBCXX_CONSTEXPR complex(const complex<float>& __z)
| ~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/complex:1232:26: note: candidate: ‘constexpr std::complex<double>::complex(double, double)’
1232 | _GLIBCXX_CONSTEXPR complex(double __r = 0.0, double __i = 0.0)
| ^~~~~~~
/usr/include/c++/9/complex:1232:41: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, false> > >’ to ‘double’
1232 | _GLIBCXX_CONSTEXPR complex(double __r = 0.0, double __i = 0.0)
| ~~~~~~~^~~~~~~~~
/usr/include/c++/9/complex:1230:26: note: candidate: ‘constexpr std::complex<double>::complex(std::complex<double>::_ComplexT)’
1230 | _GLIBCXX_CONSTEXPR complex(_ComplexT __z) : _M_value(__z) { }
| ^~~~~~~
/usr/include/c++/9/complex:1230:44: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, false> > >’ to ‘std::complex<double>::_ComplexT’ {aka ‘__complex__ double’}
1230 | _GLIBCXX_CONSTEXPR complex(_ComplexT __z) : _M_value(__z) { }
| ~~~~~~~~~~^~~
/usr/include/c++/9/complex:1225:12: note: candidate: ‘constexpr std::complex<double>::complex(const std::complex<double>&)’
1225 | struct complex<double>
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/complex:1225:12: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<double>, const Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, false> > >’ to ‘const std::complex<double>&’
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp: In instantiation of ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, -1> >; V = std::complex<double>; stan::complex_return_t<U, V> = std::complex<double>; typename stan::real_return<U, V>::type = double]’:
./stan/math/prim/core/operator_addition.hpp:69:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const U&, const std::complex<_Up>&) [with U = Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, -1> >; V = double; stan::complex_return_t<U, V> = std::complex<double>; typename stan::real_return<U, V>::type = double]’
./stan/math/prim/fun/add.hpp:61:21: required from ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::Matrix<double, -1, -1>; Scal = std::complex<double>; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests2_test.cpp:59:65: required from here
./stan/math/prim/core/operator_addition.hpp:23:26: error: no matching function for call to ‘std::complex<double>::complex(const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, -1> >&)’
23 | complex_return_t<U, V> y(lhs);
| ^
In file included from lib/eigen_3.3.9/Eigen/Core:96,
from lib/eigen_3.3.9/Eigen/Dense:1,
from ./stan/math/prim/fun/Eigen.hpp:22,
from ./stan/math/prim/meta/append_return_type.hpp:4,
from ./stan/math/prim/meta.hpp:176,
from ./stan/math/prim/err/invalid_argument.hpp:4,
from ./stan/math/prim/core/init_threadpool_tbb.hpp:4,
from ./stan/math/prim/core.hpp:4,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests2_test.cpp:1:
/usr/include/c++/9/complex:1525:3: note: candidate: ‘constexpr std::complex<double>::complex(const std::complex<long double>&)’
1525 | complex<double>::complex(const complex<long double>& __z)
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/complex:1525:56: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, -1> >’ to ‘const std::complex<long double>&’
1525 | complex<double>::complex(const complex<long double>& __z)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/complex:1242:26: note: candidate: ‘constexpr std::complex<double>::complex(const std::complex<float>&)’
1242 | _GLIBCXX_CONSTEXPR complex(const complex<float>& __z)
| ^~~~~~~
/usr/include/c++/9/complex:1242:56: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, -1> >’ to ‘const std::complex<float>&’
1242 | _GLIBCXX_CONSTEXPR complex(const complex<float>& __z)
| ~~~~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/complex:1232:26: note: candidate: ‘constexpr std::complex<double>::complex(double, double)’
1232 | _GLIBCXX_CONSTEXPR complex(double __r = 0.0, double __i = 0.0)
| ^~~~~~~
/usr/include/c++/9/complex:1232:41: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, -1> >’ to ‘double’
1232 | _GLIBCXX_CONSTEXPR complex(double __r = 0.0, double __i = 0.0)
| ~~~~~~~^~~~~~~~~
/usr/include/c++/9/complex:1230:26: note: candidate: ‘constexpr std::complex<double>::complex(std::complex<double>::_ComplexT)’
1230 | _GLIBCXX_CONSTEXPR complex(_ComplexT __z) : _M_value(__z) { }
| ^~~~~~~
/usr/include/c++/9/complex:1230:44: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, -1> >’ to ‘std::complex<double>::_ComplexT’ {aka ‘__complex__ double’}
1230 | _GLIBCXX_CONSTEXPR complex(_ComplexT __z) : _M_value(__z) { }
| ~~~~~~~~~~^~~
/usr/include/c++/9/complex:1225:12: note: candidate: ‘constexpr std::complex<double>::complex(const std::complex<double>&)’
1225 | struct complex<double>
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/complex:1225:12: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<double, -1, -1> >’ to ‘const std::complex<double>&’
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp: In instantiation of ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > >; V = std::complex<stan::math::fvar<double> >; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’:
./stan/math/prim/core/operator_addition.hpp:69:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const U&, const std::complex<_Up>&) [with U = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > >; V = stan::math::fvar<double>; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’
./stan/math/prim/fun/add.hpp:61:21: required from ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> >; Scal = std::complex<stan::math::fvar<double> >; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests3_test.cpp:15:71: required from here
./stan/math/prim/core/operator_addition.hpp:23:26: error: no matching function for call to ‘std::complex<stan::math::fvar<double> >::complex(const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > >&)’
23 | complex_return_t<U, V> y(lhs);
| ^
In file included from ./stan/math/fwd/core.hpp:20,
from ./stan/math/fwd.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:4,
from test/expressions/tests3_test.cpp:1:
./stan/math/fwd/core/std_complex.hpp:52:3: note: candidate: ‘template<class U, class V> std::complex<stan::math::fvar<T> >::complex(const U&, const V&)’
52 | complex(const U& re, const V& im) : base_t(re, im) {}
| ^~~~~~~
./stan/math/fwd/core/std_complex.hpp:52:3: note: template argument deduction/substitution failed:
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp:23:26: note: candidate expects 2 arguments, 1 provided
23 | complex_return_t<U, V> y(lhs);
| ^
In file included from ./stan/math/fwd/core.hpp:20,
from ./stan/math/fwd.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:4,
from test/expressions/tests3_test.cpp:1:
./stan/math/fwd/core/std_complex.hpp:39:3: note: candidate: ‘template<class U> std::complex<stan::math::fvar<T> >::complex(const std::complex<_Up>&)’
39 | complex(const std::complex<U>& z) // NOLINT(runtime/explicit)
| ^~~~~~~
./stan/math/fwd/core/std_complex.hpp:39:3: note: template argument deduction/substitution failed:
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp:23:26: note: ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > >’ is not derived from ‘const std::complex<_Tp>’
23 | complex_return_t<U, V> y(lhs);
| ^
In file included from ./stan/math/fwd/core.hpp:20,
from ./stan/math/fwd.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:4,
from test/expressions/tests3_test.cpp:1:
./stan/math/fwd/core/std_complex.hpp:36:3: note: candidate: ‘template<class U, class> std::complex<stan::math::fvar<T> >::complex(const U&)’
36 | complex(const U& re) : base_t(re) {} // NOLINT(runtime/explicit)
| ^~~~~~~
./stan/math/fwd/core/std_complex.hpp:36:3: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/memory:62,
from lib/benchmark_1.5.1/googletest/googletest/include/gtest/gtest.h:57,
from ./test/expressions/expression_test_helpers.hpp:1,
from test/expressions/tests3_test.cpp:1:
/usr/include/c++/9/type_traits: In substitution of ‘template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = std::integral_constant<bool, false>::value; _Tp = void]’:
./stan/math/prim/meta/require_helpers.hpp:19:7: required by substitution of ‘template<class Check> using require_t = std::enable_if_t<Check::value> [with Check = stan::is_stan_scalar<Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > > >]’
./stan/math/prim/meta/is_stan_scalar.hpp:31:1: required by substitution of ‘template<class T> using require_stan_scalar_t = stan::require_t<stan::is_stan_scalar<typename std::decay<_Tp>::type> > [with T = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > >]’
./stan/math/fwd/core/std_complex.hpp:35:25: required from ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > >; V = std::complex<stan::math::fvar<double> >; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’
./stan/math/prim/core/operator_addition.hpp:69:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const U&, const std::complex<_Up>&) [with U = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > >; V = stan::math::fvar<double>; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’
./stan/math/prim/fun/add.hpp:61:21: required from ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> >; Scal = std::complex<stan::math::fvar<double> >; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests3_test.cpp:15:71: required from here
/usr/include/c++/9/type_traits:2378:11: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
2378 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from ./stan/math/fwd/core.hpp:20,
from ./stan/math/fwd.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:4,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp: In instantiation of ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > >; V = std::complex<stan::math::fvar<double> >; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’:
./stan/math/prim/core/operator_addition.hpp:69:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const U&, const std::complex<_Up>&) [with U = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > >; V = stan::math::fvar<double>; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’
./stan/math/prim/fun/add.hpp:61:21: required from ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> >; Scal = std::complex<stan::math::fvar<double> >; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests3_test.cpp:15:71: required from here
./stan/math/fwd/core/std_complex.hpp:26:3: note: candidate: ‘constexpr std::complex<stan::math::fvar<T> >::complex() [with T = double]’
26 | complex() = default;
| ^~~~~~~
./stan/math/fwd/core/std_complex.hpp:26:3: note: candidate expects 0 arguments, 1 provided
./stan/math/fwd/core/std_complex.hpp:18:7: note: candidate: ‘std::complex<stan::math::fvar<double> >::complex(const std::complex<stan::math::fvar<double> >&)’
18 | class complex<stan::math::fvar<T>>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./stan/math/fwd/core/std_complex.hpp:18:7: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > >’ to ‘const std::complex<stan::math::fvar<double> >&’
./stan/math/fwd/core/std_complex.hpp:18:7: note: candidate: ‘std::complex<stan::math::fvar<double> >::complex(std::complex<stan::math::fvar<double> >&&)’
./stan/math/fwd/core/std_complex.hpp:18:7: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::fvar<double> >, const Eigen::Block<Eigen::Matrix<stan::math::fvar<double>, -1, -1>, -1, -1, false> > >’ to ‘std::complex<stan::math::fvar<double> >&&’
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp: In instantiation of ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = Eigen::ArrayWrapper<const Eigen::Matrix<stan::math::fvar<double>, -1, -1> >; V = std::complex<stan::math::fvar<double> >; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’:
./stan/math/prim/core/operator_addition.hpp:69:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const U&, const std::complex<_Up>&) [with U = Eigen::ArrayWrapper<const Eigen::Matrix<stan::math::fvar<double>, -1, -1> >; V = stan::math::fvar<double>; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’
./stan/math/prim/fun/add.hpp:61:21: required from ‘auto stan::math::add(const Mat&, Scal) [with Mat = Eigen::Matrix<stan::math::fvar<double>, -1, -1>; Scal = std::complex<stan::math::fvar<double> >; stan::require_eigen_t<T_desired>* <anonymous> = 0; stan::require_stan_scalar_t<V>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests3_test.cpp:16:65: required from here
./stan/math/prim/core/operator_addition.hpp:23:26: error: no matching function for call to ‘std::complex<stan::math::fvar<double> >::complex(const Eigen::ArrayWrapper<const Eigen::Matrix<stan::math::fvar<double>, -1, -1> >&)’
23 | complex_return_t<U, V> y(lhs);
| ^
In file included from ./stan/math/fwd/core.hpp:20,
from ./stan/math/fwd.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:4,
from test/expressions/tests3_test.cpp:1:
./stan/math/fwd/core/std_complex.hpp:52:3: note: candidate: ‘template<class U, class V> std::complex<stan::math::fvar<T> >::complex(const U&, const V&)’
52 | complex(const U& re, const V& im) : base_t(re, im) {}
| ^~~~~~~
./stan/math/fwd/core/std_complex.hpp:52:3: note: template argument deduction/substitution failed:
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp:23:26: note: candidate expects 2 arguments, 1 provided
23 | complex_return_t<U, V> y(lhs);
| ^
In file included from ./stan/math/fwd/core.hpp:20,
from ./stan/math/fwd.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:4,
from test/expressions/tests3_test.cpp:1:
./stan/math/fwd/core/std_complex.hpp:39:3: note: candidate: ‘template<class U> std::complex<stan::math::fvar<T> >::complex(const std::complex<_Up>&)’
39 | complex(const std::complex<U>& z) // NOLINT(runtime/explicit)
| ^~~~~~~
./stan/math/fwd/core/std_complex.hpp:39:3: note: template argument deduction/substitution failed:
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp:23:26: note: ‘const Eigen::ArrayWrapper<const Eigen::Matrix<stan::math::fvar<double>, -1, -1> >’ is not derived from ‘const std::complex<_Tp>’
23 | complex_return_t<U, V> y(lhs);
| ^
In file included from ./stan/math/fwd/core.hpp:20,
from ./stan/math/fwd.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:4,
from test/expressions/tests3_test.cpp:1:
./stan/math/fwd/core/std_complex.hpp:36:3: note: candidate: ‘template<class U, class> std::complex<stan::math::fvar<T> >::complex(const U&)’
36 | complex(const U& re) : base_t(re) {} // NOLINT(runtime/explicit)
| ^~~~~~~
./stan/math/fwd/core/std_complex.hpp:36:3: note: template argument deduction/substitution failed:
./stan/math/fwd/core/std_complex.hpp:26:3: note: candidate: ‘constexpr std::complex<stan::math::fvar<T> >::complex() [with T = double]’
26 | complex() = default;
| ^~~~~~~
./stan/math/fwd/core/std_complex.hpp:26:3: note: candidate expects 0 arguments, 1 provided
./stan/math/fwd/core/std_complex.hpp:18:7: note: candidate: ‘std::complex<stan::math::fvar<double> >::complex(const std::complex<stan::math::fvar<double> >&)’
18 | class complex<stan::math::fvar<T>>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
./stan/math/fwd/core/std_complex.hpp:18:7: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<stan::math::fvar<double>, -1, -1> >’ to ‘const std::complex<stan::math::fvar<double> >&’
./stan/math/fwd/core/std_complex.hpp:18:7: note: candidate: ‘std::complex<stan::math::fvar<double> >::complex(std::complex<stan::math::fvar<double> >&&)’
./stan/math/fwd/core/std_complex.hpp:18:7: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<stan::math::fvar<double>, -1, -1> >’ to ‘std::complex<stan::math::fvar<double> >&&’
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp: In instantiation of ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = std::complex<double>; V = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, 1, -1>, 1, -1, false> > >; stan::complex_return_t<U, V> = std::complex<double>; typename stan::real_return<U, V>::type = double]’:
./stan/math/prim/core/operator_addition.hpp:55:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const std::complex<_Tp>&, const V&) [with U = double; V = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, 1, -1>, 1, -1, false> > >; stan::complex_return_t<U, V> = std::complex<double>; typename stan::real_return<U, V>::type = double]’
./stan/math/prim/fun/add.hpp:77:13: required from ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<double>; Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, 1, -1>, 1, -1, false> >; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests3_test.cpp:33:71: required from here
./stan/math/prim/core/operator_addition.hpp:24:5: error: no match for ‘operator+=’ (operand types are ‘stan::complex_return_t<std::complex<double>, Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, 1, -1, 1, 1, -1>, 1, -1, false> > > >’ {aka ‘std::complex<double>’} and ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, 1, -1>, 1, -1, false> > >’)
24 | y += rhs;
| ~~^~~~~~
In file included from lib/eigen_3.3.9/Eigen/Core:96,
from lib/eigen_3.3.9/Eigen/Dense:1,
from ./stan/math/prim/fun/Eigen.hpp:22,
from ./stan/math/prim/meta/append_return_type.hpp:4,
from ./stan/math/prim/meta.hpp:176,
from ./stan/math/prim/err/invalid_argument.hpp:4,
from ./stan/math/prim/core/init_threadpool_tbb.hpp:4,
from ./stan/math/prim/core.hpp:4,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
/usr/include/c++/9/complex:1287:7: note: candidate: ‘std::complex<double>& std::complex<double>::operator+=(double)’
1287 | operator+=(double __d)
| ^~~~~~~~
/usr/include/c++/9/complex:1287:25: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, 1, -1>, 1, -1, false> > >’ to ‘double’
1287 | operator+=(double __d)
| ~~~~~~~^~~
/usr/include/c++/9/complex:1329:9: note: candidate: ‘template<class _Tp> std::complex<double>& std::complex<double>::operator+=(const std::complex<_Tp>&)’
1329 | operator+=(const complex<_Tp>& __z)
| ^~~~~~~~
/usr/include/c++/9/complex:1329:9: note: template argument deduction/substitution failed:
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp:24:5: note: ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<double> >, const Eigen::Block<Eigen::Matrix<std::complex<double>, 1, -1>, 1, -1, false> > >’ is not derived from ‘const std::complex<_Tp>’
24 | y += rhs;
| ~~^~~~~~
./stan/math/prim/core/operator_addition.hpp: In instantiation of ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = std::complex<double>; V = Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<double>, 1, -1> >; stan::complex_return_t<U, V> = std::complex<double>; typename stan::real_return<U, V>::type = double]’:
./stan/math/prim/core/operator_addition.hpp:55:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const std::complex<_Tp>&, const V&) [with U = double; V = Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<double>, 1, -1> >; stan::complex_return_t<U, V> = std::complex<double>; typename stan::real_return<U, V>::type = double]’
./stan/math/prim/fun/add.hpp:77:13: required from ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<double>; Mat = Eigen::Matrix<std::complex<double>, 1, -1>; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests3_test.cpp:34:65: required from here
./stan/math/prim/core/operator_addition.hpp:24:5: error: no match for ‘operator+=’ (operand types are ‘stan::complex_return_t<std::complex<double>, Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<double>, 1, -1, 1, 1, -1> > >’ {aka ‘std::complex<double>’} and ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<double>, 1, -1> >’)
In file included from lib/eigen_3.3.9/Eigen/Core:96,
from lib/eigen_3.3.9/Eigen/Dense:1,
from ./stan/math/prim/fun/Eigen.hpp:22,
from ./stan/math/prim/meta/append_return_type.hpp:4,
from ./stan/math/prim/meta.hpp:176,
from ./stan/math/prim/err/invalid_argument.hpp:4,
from ./stan/math/prim/core/init_threadpool_tbb.hpp:4,
from ./stan/math/prim/core.hpp:4,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
/usr/include/c++/9/complex:1287:7: note: candidate: ‘std::complex<double>& std::complex<double>::operator+=(double)’
1287 | operator+=(double __d)
| ^~~~~~~~
/usr/include/c++/9/complex:1287:25: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<double>, 1, -1> >’ to ‘double’
1287 | operator+=(double __d)
| ~~~~~~~^~~
/usr/include/c++/9/complex:1329:9: note: candidate: ‘template<class _Tp> std::complex<double>& std::complex<double>::operator+=(const std::complex<_Tp>&)’
1329 | operator+=(const complex<_Tp>& __z)
| ^~~~~~~~
/usr/include/c++/9/complex:1329:9: note: template argument deduction/substitution failed:
In file included from ./stan/math/prim/core.hpp:5,
from ./stan/math/prim.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/core/operator_addition.hpp:24:5: note: ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<double>, 1, -1> >’ is not derived from ‘const std::complex<_Tp>’
24 | y += rhs;
| ~~^~~~~~
In file included from ./stan/math/rev/core/std_complex.hpp:5,
from ./stan/math/rev/core/operator_division.hpp:11,
from ./stan/math/rev/core/operator_divide_equal.hpp:5,
from ./stan/math/rev/core.hpp:29,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_type& stan::math::complex_base<ValueType>::operator+=(const U&) [with U = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1>, 1, -1, false> > >; ValueType = stan::math::var_value<double>; stan::math::complex_base<ValueType>::complex_type = std::complex<stan::math::var_value<double> >]’:
./stan/math/prim/core/operator_addition.hpp:24:5: required from ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = std::complex<stan::math::var_value<double> >; V = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1>, 1, -1, false> > >; stan::complex_return_t<U, V> = std::complex<stan::math::var_value<double> >; typename stan::real_return<U, V>::type = stan::math::var_value<double>]’
./stan/math/prim/core/operator_addition.hpp:55:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const std::complex<_Tp>&, const V&) [with U = stan::math::var_value<double>; V = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1>, 1, -1, false> > >; stan::complex_return_t<U, V> = std::complex<stan::math::var_value<double> >; typename stan::real_return<U, V>::type = stan::math::var_value<double>]’
./stan/math/prim/fun/add.hpp:77:13: required from ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<stan::math::var_value<double> >; Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1>, 1, -1, false> >; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests3_test.cpp:51:71: required from here
./stan/math/prim/core/complex_base.hpp:109:9: error: no match for ‘operator+=’ (operand types are ‘stan::math::complex_base<stan::math::var_value<double> >::value_type’ {aka ‘stan::math::var_value<double>’} and ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1>, 1, -1, false> > >’)
109 | re_ += x;
| ~~~~^~~~
In file included from ./stan/math/rev/core.hpp:42,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests3_test.cpp:1:
./stan/math/rev/core/operator_plus_equal.hpp:12:22: note: candidate: ‘stan::math::var_value<T>& stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::operator+=(const stan::math::var_value<T>&) [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void]’
12 | inline var_value<T>& var_value<T, require_floating_point_t<T>>::operator+=(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./stan/math/rev/meta/conditional_var_value.hpp:4,
from ./stan/math/rev/meta.hpp:6,
from ./stan/math/rev/core/accumulate_adjoints.hpp:5,
from ./stan/math/rev/core.hpp:4,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests3_test.cpp:1:
./stan/math/rev/core/var.hpp:191:55: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1>, 1, -1, false> > >’ to ‘const stan::math::var_value<double>&’
191 | inline var_value<T>& operator+=(const var_value<T>& b);
| ~~~~~~~~~~~~~~~~~~~~^
In file included from ./stan/math/rev/core.hpp:42,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests3_test.cpp:1:
./stan/math/rev/core/operator_plus_equal.hpp:19:22: note: candidate: ‘stan::math::var_value<T>& stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::operator+=(T) [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void]’
19 | inline var_value<T>& var_value<T, require_floating_point_t<T>>::operator+=(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./stan/math/rev/meta/conditional_var_value.hpp:4,
from ./stan/math/rev/meta.hpp:6,
from ./stan/math/rev/core/accumulate_adjoints.hpp:5,
from ./stan/math/rev/core.hpp:4,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests3_test.cpp:1:
./stan/math/rev/core/var.hpp:203:37: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1>, 1, -1, false> > >’ to ‘double’
203 | inline var_value<T>& operator+=(T b);
| ~~^
In file included from ./stan/math/rev/core/std_complex.hpp:5,
from ./stan/math/rev/core/operator_division.hpp:11,
from ./stan/math/rev/core/operator_divide_equal.hpp:5,
from ./stan/math/rev/core.hpp:29,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_type& stan::math::complex_base<ValueType>::operator+=(const U&) [with U = Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1> >; ValueType = stan::math::var_value<double>; stan::math::complex_base<ValueType>::complex_type = std::complex<stan::math::var_value<double> >]’:
./stan/math/prim/core/operator_addition.hpp:24:5: required from ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = std::complex<stan::math::var_value<double> >; V = Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1> >; stan::complex_return_t<U, V> = std::complex<stan::math::var_value<double> >; typename stan::real_return<U, V>::type = stan::math::var_value<double>]’
./stan/math/prim/core/operator_addition.hpp:55:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const std::complex<_Tp>&, const V&) [with U = stan::math::var_value<double>; V = Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1> >; stan::complex_return_t<U, V> = std::complex<stan::math::var_value<double> >; typename stan::real_return<U, V>::type = stan::math::var_value<double>]’
./stan/math/prim/fun/add.hpp:77:13: required from ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<stan::math::var_value<double> >; Mat = Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1>; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests3_test.cpp:52:65: required from here
./stan/math/prim/core/complex_base.hpp:109:9: error: no match for ‘operator+=’ (operand types are ‘stan::math::complex_base<stan::math::var_value<double> >::value_type’ {aka ‘stan::math::var_value<double>’} and ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1> >’)
109 | re_ += x;
| ~~~~^~~~
In file included from ./stan/math/rev/core.hpp:42,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests3_test.cpp:1:
./stan/math/rev/core/operator_plus_equal.hpp:12:22: note: candidate: ‘stan::math::var_value<T>& stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::operator+=(const stan::math::var_value<T>&) [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void]’
12 | inline var_value<T>& var_value<T, require_floating_point_t<T>>::operator+=(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./stan/math/rev/meta/conditional_var_value.hpp:4,
from ./stan/math/rev/meta.hpp:6,
from ./stan/math/rev/core/accumulate_adjoints.hpp:5,
from ./stan/math/rev/core.hpp:4,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests3_test.cpp:1:
./stan/math/rev/core/var.hpp:191:55: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1> >’ to ‘const stan::math::var_value<double>&’
191 | inline var_value<T>& operator+=(const var_value<T>& b);
| ~~~~~~~~~~~~~~~~~~~~^
In file included from ./stan/math/rev/core.hpp:42,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests3_test.cpp:1:
./stan/math/rev/core/operator_plus_equal.hpp:19:22: note: candidate: ‘stan::math::var_value<T>& stan::math::var_value<T, typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type>::operator+=(T) [with T = double; typename std::enable_if<std::is_floating_point<typename std::decay<_Tp>::type>::value, void>::type = void]’
19 | inline var_value<T>& var_value<T, require_floating_point_t<T>>::operator+=(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./stan/math/rev/meta/conditional_var_value.hpp:4,
from ./stan/math/rev/meta.hpp:6,
from ./stan/math/rev/core/accumulate_adjoints.hpp:5,
from ./stan/math/rev/core.hpp:4,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests3_test.cpp:1:
./stan/math/rev/core/var.hpp:203:37: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::var_value<double> >, 1, -1> >’ to ‘double’
203 | inline var_value<T>& operator+=(T b);
| ~~^
In file included from ./stan/math/rev/core/std_complex.hpp:5,
from ./stan/math/rev/core/operator_division.hpp:11,
from ./stan/math/rev/core/operator_divide_equal.hpp:5,
from ./stan/math/rev/core.hpp:29,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_type& stan::math::complex_base<ValueType>::operator+=(const U&) [with U = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1>, 1, -1, false> > >; ValueType = stan::math::fvar<double>; stan::math::complex_base<ValueType>::complex_type = std::complex<stan::math::fvar<double> >]’:
./stan/math/prim/core/operator_addition.hpp:24:5: required from ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = std::complex<stan::math::fvar<double> >; V = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1>, 1, -1, false> > >; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’
./stan/math/prim/core/operator_addition.hpp:55:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const std::complex<_Tp>&, const V&) [with U = stan::math::fvar<double>; V = Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1>, 1, -1, false> > >; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’
./stan/math/prim/fun/add.hpp:77:13: required from ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<stan::math::fvar<double> >; Mat = Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1>, 1, -1, false> >; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests3_test.cpp:76:71: required from here
./stan/math/prim/core/complex_base.hpp:109:9: error: no match for ‘operator+=’ (operand types are ‘stan::math::complex_base<stan::math::fvar<double> >::value_type’ {aka ‘stan::math::fvar<double>’} and ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1>, 1, -1, false> > >’)
109 | re_ += x;
| ~~~~^~~~
In file included from ./stan/math/fwd/core.hpp:4,
from ./stan/math/fwd.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:4,
from test/expressions/tests3_test.cpp:1:
./stan/math/fwd/core/fvar.hpp:112:19: note: candidate: ‘stan::math::fvar<T>& stan::math::fvar<T>::operator+=(const stan::math::fvar<T>&) [with T = double]’
112 | inline fvar<T>& operator+=(const fvar<T>& x2) {
| ^~~~~~~~
./stan/math/fwd/core/fvar.hpp:112:45: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1>, 1, -1, false> > >’ to ‘const stan::math::fvar<double>&’
112 | inline fvar<T>& operator+=(const fvar<T>& x2) {
| ~~~~~~~~~~~~~~~^~
./stan/math/fwd/core/fvar.hpp:125:19: note: candidate: ‘stan::math::fvar<T>& stan::math::fvar<T>::operator+=(double) [with T = double]’
125 | inline fvar<T>& operator+=(double x2) {
| ^~~~~~~~
./stan/math/fwd/core/fvar.hpp:125:37: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::fvar<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1>, 1, -1, false> > >’ to ‘double’
125 | inline fvar<T>& operator+=(double x2) {
| ~~~~~~~^~
In file included from ./stan/math/rev/core/std_complex.hpp:5,
from ./stan/math/rev/core/operator_division.hpp:11,
from ./stan/math/rev/core/operator_divide_equal.hpp:5,
from ./stan/math/rev/core.hpp:29,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests3_test.cpp:1:
./stan/math/prim/core/complex_base.hpp: In instantiation of ‘stan::math::complex_base<ValueType>::complex_type& stan::math::complex_base<ValueType>::operator+=(const U&) [with U = Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1> >; ValueType = stan::math::fvar<double>; stan::math::complex_base<ValueType>::complex_type = std::complex<stan::math::fvar<double> >]’:
./stan/math/prim/core/operator_addition.hpp:24:5: required from ‘stan::complex_return_t<U, V> stan::math::internal::complex_add(const U&, const V&) [with U = std::complex<stan::math::fvar<double> >; V = Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1> >; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’
./stan/math/prim/core/operator_addition.hpp:55:31: required from ‘stan::complex_return_t<U, V> stan::math::operator+(const std::complex<_Tp>&, const V&) [with U = stan::math::fvar<double>; V = Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1> >; stan::complex_return_t<U, V> = std::complex<stan::math::fvar<double> >; typename stan::real_return<U, V>::type = stan::math::fvar<double>]’
./stan/math/prim/fun/add.hpp:77:13: required from ‘auto stan::math::add(Scal, const Mat&) [with Scal = std::complex<stan::math::fvar<double> >; Mat = Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1>; stan::require_stan_scalar_t<U>* <anonymous> = 0; stan::require_eigen_t<S>* <anonymous> = 0; stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> = 0]’
test/expressions/tests3_test.cpp:77:65: required from here
./stan/math/prim/core/complex_base.hpp:109:9: error: no match for ‘operator+=’ (operand types are ‘stan::math::complex_base<stan::math::fvar<double> >::value_type’ {aka ‘stan::math::fvar<double>’} and ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1> >’)
109 | re_ += x;
| ~~~~^~~~
In file included from ./stan/math/fwd/core.hpp:4,
from ./stan/math/fwd.hpp:10,
from ./test/expressions/expression_test_helpers.hpp:4,
from test/expressions/tests3_test.cpp:1:
./stan/math/fwd/core/fvar.hpp:112:19: note: candidate: ‘stan::math::fvar<T>& stan::math::fvar<T>::operator+=(const stan::math::fvar<T>&) [with T = double]’
112 | inline fvar<T>& operator+=(const fvar<T>& x2) {
| ^~~~~~~~
./stan/math/fwd/core/fvar.hpp:112:45: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1> >’ to ‘const stan::math::fvar<double>&’
112 | inline fvar<T>& operator+=(const fvar<T>& x2) {
| ~~~~~~~~~~~~~~~^~
./stan/math/fwd/core/fvar.hpp:125:19: note: candidate: ‘stan::math::fvar<T>& stan::math::fvar<T>::operator+=(double) [with T = double]’
125 | inline fvar<T>& operator+=(double x2) {
| ^~~~~~~~
./stan/math/fwd/core/fvar.hpp:125:37: note: no known conversion for argument 1 from ‘const Eigen::ArrayWrapper<const Eigen::Matrix<std::complex<stan::math::fvar<double> >, 1, -1> >’ to ‘double’
125 | inline fvar<T>& operator+=(double x2) {
| ~~~~~~~^~
make: *** [<builtin>: test/expressions/tests4_test.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [<builtin>: test/expressions/tests2_test.o] Error 1
make: *** [<builtin>: test/expressions/tests1_test.o] Error 1
make: *** [<builtin>: test/expressions/tests5_test.o] Error 1
make: *** [<builtin>: test/expressions/tests3_test.o] Error 1
test/expressions/tests6_test.cpp: In member function ‘virtual void ExpressionTestRev_add10_Test::TestBody()’:
test/expressions/tests6_test.cpp:64:76: error: no matching function for call to ‘add(Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::var_value<double> >, const Eigen::Block<Eigen::Matrix<stan::math::var_value<double>, -1, -1>, -1, -1, false> >&, Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, -1>, -1, -1, false> >&)’
64 | auto result6 = stan::math::eval(stan::math::add(matrix0_expr2,matrix1_expr3));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests6_test.cpp:1:
./stan/math/prim/fun/add.hpp:23:40: note: candidate: ‘template<class ScalarA, class ScalarB, stan::require_all_stan_scalar_t<T_y, T_high>* <anonymous>, stan::require_all_not_var_t<ScalarA, ScalarB>* <anonymous> > stan::return_type_t<T1, T2> stan::math::add(const ScalarA&, const ScalarB&)’
23 | inline return_type_t<ScalarA, ScalarB> add(const ScalarA& a, const ScalarB& b) {
| ^~~
./stan/math/prim/fun/add.hpp:23:40: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/9/bits/move.h:55,
from /usr/include/c++/9/bits/stl_pair.h:59,
from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/memory:62,
from lib/benchmark_1.5.1/googletest/googletest/include/gtest/gtest.h:57,
from ./test/expressions/expression_test_helpers.hpp:1,
from test/expressions/tests6_test.cpp:1:
/usr/include/c++/9/type_traits: In substitution of ‘template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = std::integral_constant<bool, false>::value; _Tp = void]’:
./stan/math/prim/meta/require_helpers.hpp:34:7: required by substitution of ‘template<class ... Checks> using require_all_t = std::enable_if_t<stan::math::conjunction<T>::value> [with Checks = {stan::is_stan_scalar<Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::var_value<double, void> >, const Eigen::Block<Eigen::Matrix<stan::math::var_value<double, void>, -1, -1, 0, -1, -1>, -1, -1, false> > >, stan::is_stan_scalar<Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double, void> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double, void> >, -1, -1, 0, -1, -1>, -1, -1, false> > >}]’
./stan/math/prim/meta/is_stan_scalar.hpp:31:1: required by substitution of ‘template<class ... Types> using require_all_stan_scalar_t = stan::require_all_t<stan::is_stan_scalar<typename std::decay<Types>::type>...> [with Types = {Eigen::CwiseUnaryOp<stan::test::counterOp<stan::math::var_value<double, void> >, const Eigen::Block<Eigen::Matrix<stan::math::var_value<double, void>, -1, -1, 0, -1, -1>, -1, -1, false> >, Eigen::CwiseUnaryOp<stan::test::counterOp<std::complex<stan::math::var_value<double, void> > >, const Eigen::Block<Eigen::Matrix<std::complex<stan::math::var_value<double, void> >, -1, -1, 0, -1, -1>, -1, -1, false> >}]’
./stan/math/prim/fun/add.hpp:21:58: required from here
/usr/include/c++/9/type_traits:2378:11: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
2378 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests6_test.cpp:1:
./stan/math/prim/fun/add.hpp:43:13: note: candidate: ‘template<class Mat1, class Mat2, stan::require_all_eigen_t<T_desired, T_actual>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(const Mat1&, const Mat2&)’
43 | inline auto add(const Mat1& m1, const Mat2& m2) {
| ^~~
./stan/math/prim/fun/add.hpp:43:13: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:60:13: note: candidate: ‘template<class Mat, class Scal, stan::require_eigen_t<T_desired>* <anonymous>, stan::require_stan_scalar_t<V>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(const Mat&, Scal)’
60 | inline auto add(const Mat& m, const Scal c) {
| ^~~
./stan/math/prim/fun/add.hpp:60:13: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:76:13: note: candidate: ‘template<class Scal, class Mat, stan::require_stan_scalar_t<U>* <anonymous>, stan::require_eigen_t<S>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(Scal, const Mat&)’
76 | inline auto add(const Scal c, const Mat& m) {
| ^~~
./stan/math/prim/fun/add.hpp:76:13: note: template argument deduction/substitution failed:
In file included from ./stan/math/rev/core.hpp:28,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests6_test.cpp:1:
./stan/math/rev/core/operator_addition.hpp:111:13: note: candidate: ‘template<class VarMat1, class VarMat2, stan::require_all_rev_matrix_t<VarMat1, VarMat2>* <anonymous> > auto stan::math::add(const VarMat1&, const VarMat2&)’
111 | inline auto add(const VarMat1& a, const VarMat2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:111:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:142:13: note: candidate: ‘template<class Arith, class VarMat, stan::require_st_arithmetic<T>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const VarMat&, const Arith&)’
142 | inline auto add(const VarMat& a, const Arith& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:142:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:168:13: note: candidate: ‘template<class Arith, class VarMat, stan::require_st_arithmetic<T>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const Arith&, const VarMat&)’
168 | inline auto add(const Arith& a, const VarMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:168:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:184:13: note: candidate: ‘template<class Var, class EigMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_eigen_vt<std::is_arithmetic, EigMat>* <anonymous> > auto stan::math::add(const Var&, const EigMat&)’
184 | inline auto add(const Var& a, const EigMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:184:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:203:13: note: candidate: ‘template<class EigMat, class Var, stan::require_eigen_vt<std::is_arithmetic, T>* <anonymous>, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous> > auto stan::math::add(const EigMat&, const Var&)’
203 | inline auto add(const EigMat& a, const Var& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:203:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:220:13: note: candidate: ‘template<class Var, class VarMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const Var&, const VarMat&)’
220 | inline auto add(const Var& a, const VarMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:220:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:249:13: note: candidate: ‘template<class Var, class VarMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const VarMat&, const Var&)’
249 | inline auto add(const VarMat& a, const Var& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:249:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:256:13: note: candidate: ‘template<class T1, class T2, stan::require_any_var_vt<std::is_arithmetic, T1, T2>* <anonymous>, stan::require_any_arithmetic_t<T1, T2>* <anonymous> > auto stan::math::add(const T1&, const T2&)’
256 | inline auto add(const T1& a, const T2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:256:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:262:13: note: candidate: ‘template<class T1, class T2, stan::require_all_var_vt<std::is_arithmetic, T1, T2>* <anonymous> > auto stan::math::add(const T1&, const T2&)’
262 | inline auto add(const T1& a, const T2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:262:13: note: template argument deduction/substitution failed:
test/expressions/tests6_test.cpp:65:64: error: no matching function for call to ‘add(Eigen::Matrix<stan::math::var_value<double>, -1, -1>&, Eigen::Matrix<std::complex<stan::math::var_value<double> >, -1, -1>&)’
65 | auto result7 = stan::math::eval(stan::math::add(matrix4,matrix5));
| ^
In file included from ./stan/math/prim/fun.hpp:8,
from ./stan/math/prim.hpp:14,
from ./test/expressions/expression_test_helpers.hpp:2,
from test/expressions/tests6_test.cpp:1:
./stan/math/prim/fun/add.hpp:23:40: note: candidate: ‘template<class ScalarA, class ScalarB, stan::require_all_stan_scalar_t<T_y, T_high>* <anonymous>, stan::require_all_not_var_t<ScalarA, ScalarB>* <anonymous> > stan::return_type_t<T1, T2> stan::math::add(const ScalarA&, const ScalarB&)’
23 | inline return_type_t<ScalarA, ScalarB> add(const ScalarA& a, const ScalarB& b) {
| ^~~
./stan/math/prim/fun/add.hpp:23:40: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:43:13: note: candidate: ‘template<class Mat1, class Mat2, stan::require_all_eigen_t<T_desired, T_actual>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(const Mat1&, const Mat2&)’
43 | inline auto add(const Mat1& m1, const Mat2& m2) {
| ^~~
./stan/math/prim/fun/add.hpp:43:13: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:60:13: note: candidate: ‘template<class Mat, class Scal, stan::require_eigen_t<T_desired>* <anonymous>, stan::require_stan_scalar_t<V>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(const Mat&, Scal)’
60 | inline auto add(const Mat& m, const Scal c) {
| ^~~
./stan/math/prim/fun/add.hpp:60:13: note: template argument deduction/substitution failed:
./stan/math/prim/fun/add.hpp:76:13: note: candidate: ‘template<class Scal, class Mat, stan::require_stan_scalar_t<U>* <anonymous>, stan::require_eigen_t<S>* <anonymous>, stan::require_all_not_st_var<Mat1, Mat2>* <anonymous> > auto stan::math::add(Scal, const Mat&)’
76 | inline auto add(const Scal c, const Mat& m) {
| ^~~
./stan/math/prim/fun/add.hpp:76:13: note: template argument deduction/substitution failed:
In file included from ./stan/math/rev/core.hpp:28,
from ./stan/math/rev.hpp:8,
from ./test/expressions/expression_test_helpers.hpp:3,
from test/expressions/tests6_test.cpp:1:
./stan/math/rev/core/operator_addition.hpp:111:13: note: candidate: ‘template<class VarMat1, class VarMat2, stan::require_all_rev_matrix_t<VarMat1, VarMat2>* <anonymous> > auto stan::math::add(const VarMat1&, const VarMat2&)’
111 | inline auto add(const VarMat1& a, const VarMat2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:111:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:142:13: note: candidate: ‘template<class Arith, class VarMat, stan::require_st_arithmetic<T>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const VarMat&, const Arith&)’
142 | inline auto add(const VarMat& a, const Arith& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:142:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:168:13: note: candidate: ‘template<class Arith, class VarMat, stan::require_st_arithmetic<T>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const Arith&, const VarMat&)’
168 | inline auto add(const Arith& a, const VarMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:168:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:184:13: note: candidate: ‘template<class Var, class EigMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_eigen_vt<std::is_arithmetic, EigMat>* <anonymous> > auto stan::math::add(const Var&, const EigMat&)’
184 | inline auto add(const Var& a, const EigMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:184:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:203:13: note: candidate: ‘template<class EigMat, class Var, stan::require_eigen_vt<std::is_arithmetic, T>* <anonymous>, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous> > auto stan::math::add(const EigMat&, const Var&)’
203 | inline auto add(const EigMat& a, const Var& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:203:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:220:13: note: candidate: ‘template<class Var, class VarMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const Var&, const VarMat&)’
220 | inline auto add(const Var& a, const VarMat& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:220:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:249:13: note: candidate: ‘template<class Var, class VarMat, stan::require_var_vt<std::is_arithmetic, Var>* <anonymous>, stan::require_rev_matrix_t<VarMat>* <anonymous> > auto stan::math::add(const VarMat&, const Var&)’
249 | inline auto add(const VarMat& a, const Var& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:249:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:256:13: note: candidate: ‘template<class T1, class T2, stan::require_any_var_vt<std::is_arithmetic, T1, T2>* <anonymous>, stan::require_any_arithmetic_t<T1, T2>* <anonymous> > auto stan::math::add(const T1&, const T2&)’
256 | inline auto add(const T1& a, const T2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:256:13: note: template argument deduction/substitution failed:
./stan/math/rev/core/operator_addition.hpp:262:13: note: candidate: ‘template<class T1, class T2, stan::require_all_var_vt<std::is_arithmetic, T1, T2>* <anonymous> > auto stan::math::add(const T1&, const T2&)’
262 | inline auto add(const T1& a, const T2& b) {
| ^~~
./stan/math/rev/core/operator_addition.hpp:262:13: note: template argument deduction/substitution failed:
make: *** [<builtin>: test/expressions/tests6_test.o] Error 1
make -j7 test/expressions/tests0_test test/expressions/tests1_test test/expressions/tests2_test test/expressions/tests3_test test/expressions/tests4_test test/expressions/tests5_test test/expressions/tests6_test test/expressions/tests7_test test/expressions/tests8_test test/expressions/tests9_test test/expressions/tests10_test test/expressions/tests11_test test/expressions/tests12_test test/expressions/tests13_test test/expressions/tests14_test test/expressions/tests15_test test/expressions/tests16_test test/expressions/tests17_test test/expressions/tests18_test test/expressions/tests19_test test/expressions/tests20_test test/expressions/tests21_test test/expressions/tests22_test test/expressions/tests23_test test/expressions/tests24_test test/expressions/tests25_test test/expressions/tests26_test test/expressions/tests27_test failed
exit now (04/12/22 10:35:56 EDT)
------------------------------------------------------------
make -j7 test/expressions/tests0_test test/expressions/tests1_test test/expressions/tests2_test test/expressions/tests3_test test/expressions/tests4_test test/expressions/tests5_test test/expressions/tests6_test test/expressions/tests7_test test/expressions/tests8_test test/expressions/tests9_test test/expressions/tests10_test test/expressions/tests11_test test/expressions/tests12_test test/expressions/tests13_test test/expressions/tests14_test test/expressions/tests15_test test/expressions/tests16_test test/expressions/tests17_test test/expressions/tests18_test test/expressions/tests19_test test/expressions/tests20_test test/expressions/tests21_test test/expressions/tests22_test test/expressions/tests23_test test/expressions/tests24_test test/expressions/tests25_test test/expressions/tests26_test test/expressions/tests27_test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment