fdevinc

Results 10 comments of fdevinc

@bradbell Thanks for your help! I have tried, but I got, among others, the following error: ``` base_cond_exp.hpp(170, 21): no known conversion for argument 1 from ‘Eigen::NumTraits::Real’ {aka ‘CppAD::AD’} to...

Ah, rookie mistake! You are right, now everything works as desired; thanks a lot again!

Hi all, I am reopening this issue because I cannot find a way to have more general if/else statements with _CppAD_/_CppADCodeGen_. Indeed, I would like to have a set of...

@bradbell thank you for your help, but this is not exactly what I am trying to achieve. Basically, you suggest to compute a vector `a` and a vector `b`, and...

I see, this is unfortunate! Then, I guess that the only way is to create different conditional expressions for each vector components.

Thanks! Right now I am having another issue with if/else statements -- probably related to [this](https://github.com/coin-or/CppAD/issues/8). Consider this function: ``` const ad_scalar_t norm = vec.norm(); y = CppAD::CondExpGt(norm, ad_scalar_t{0}, cos(norm),...

I could not reproduce this error by only using _CppAD_: unless I am wrong, it looks like it is a _CppADCodeGen_ issue. But I noticed something interesting. Consider the following...

Sorry, I have just updated my code: the vector `val` should be two-dimensional!

> You might take a look at https://coin-or.github.io/CppAD/doc/code_gen_fun.htm > > The problem with this example is that it makes CppAD depend on CppADCodeGen which in turn depends on CppAD. This...

Thanks a lot for your reply. Code generation is especially useful for optimal control applications: I hope you or a collaborator will consider adding it in the future! You say...