Registered Member
|
Hi, I'm recently writing a neural network, but I didn't find tanh function in Eigen. I did some trying and found a way to add tanh to Eigen. This works because Eigen uses std::tan/sin/cos .etc to compute each coefficient. You can copy the definition of tan function and change them to tanh.
The following files should be modified.
If you are not sure what to modify you can search for tan or cos in all files in Eigen folder and see which files are affected. I'm not sure if this will work robustly, but it works for my case at least. Cheers, Phil |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]