36 iperm[i]+=CppAD::CondExpLt(x[j], x[i], One, Zero );
40 iperm[i]+=CppAD::CondExpEq(x[j], x[i], One, Zero );
44 P(j,i)=CppAD::CondExpEq(Type(j), iperm[i], One, Zero );
63 y.row(i)+=x(j)*P(i,j);
Taped sorting of a vector.
Matrix class used by TMB.
Vector class used by TMB.
Utility functions for TMB (automatically included)