Thanks for taking care of that!
We have an issue with the generated code for
models/basic_distributions/wishart2x2. It doesn't compile.
Both g++ and clang++ report two errors that I haven't gotten my head
around yet. I've snipped the two errors (from g++) and included it
below. clang++ gives back a similar message, but at least the output
has color.
g++ message:
g++ -I src -I lib/eigen_3.1.0 -I lib/eigen_3.1.0/unsupported -I
lib/boost_1.50.0 -O3 -Wall -Wno-unused-function -c -o
models/basic_distributions/wishart2x2.o
models/basic_distributions/wishart2x2.cpp
In file included from src/stan/gm/command.hpp:19:0,
from src/stan/model/model_header.hpp:20,
from models/basic_distributions/wishart2x2.cpp:3:
...
models/basic_distributions/wishart2x2.cpp:140:33: error: no match for
'operator[]' in
'((Eigen::DenseCoeffsBase<Eigen::Matrix<stan::agrad::var,
-0x00000000000000001, -0x00000000000000001, 0, -0x00000000000000001,
-0x00000000000000001>,
1>*)((Eigen::DenseBase<Eigen::Matrix<stan::agrad::var,
-0x00000000000000001, -0x00000000000000001, 0, -0x00000000000000001,
-0x00000000000000001> >*)(& W)))->Eigen::DenseCoeffsBase<Derived,
1>::operator[] [with Derived = Eigen::Matrix<stan::agrad::var,
-0x00000000000000001, -0x00000000000000001, 0, -0x00000000000000001,
-0x00000000000000001>, Eigen::DenseCoeffsBase<Derived, 1>::Scalar =
stan::agrad::var, Eigen::DenseCoeffsBase<Derived, 1>::Index = long
int](((long int)i0__))[i1__]'
...
lib/eigen_3.1.0/Eigen/src/Core/DenseCoeffsBase.h: In member function
'Eigen::DenseCoeffsBase<Derived, 1>::Scalar&
Eigen::DenseCoeffsBase<Derived,
1>::operator[](Eigen::DenseCoeffsBase<Derived, 1>::Index) [with
Derived = Eigen::Matrix<stan::agrad::var, -0x00000000000000001,
-0x00000000000000001, 0, -0x00000000000000001, -0x00000000000000001>,
Eigen::DenseCoeffsBase<Derived, 1>::Scalar = stan::agrad::var,
Eigen::DenseCoeffsBase<Derived, 1>::Index = long int]':
models/basic_distributions/wishart2x2.cpp:140:27: instantiated from here
lib/eigen_3.1.0/Eigen/src/Core/DenseCoeffsBase.h:390:7: error:
'THE_BRACKET_OPERATOR_IS_ONLY_FOR_VECTORS__USE_THE_PARENTHESIS_OPERATOR_INSTEAD'
is not a member of 'Eigen::internal::static_assertion<false>'