This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen

Bug 1305

Summary: Implementation of additional component-wise unary functions
Product: Eigen Reporter: Matthias Moeller <mmoelle1>
Component: Core - expression templatesAssignee: Nobody <eigen.nobody>
Status: RESOLVED FIXED    
Severity: Feature Request CC: ashku, chtz, gael.guennebaud, jacob.benoit.1
Priority: Normal    
Version: 3.4 (development)   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 814    
Attachments:
Description Flags
Implementation of additional component-wise unary functions none

Description Matthias Moeller 2016-09-23 07:05:21 UTC
Created attachment 737 [details]
Implementation of additional component-wise unary functions

Dear all,

for one of my projects I implemented the following additional component-wise unary functions that are not present in the release 3.2.9:

atan, log10, sinh, asinh, cosh, acosh, tanh, atanh, erf, erfc, ceil, floor, round, trunc

Implementation strictly follows the way that cos, sin, etc. are implemented, that is, calls to MKL, etc. are implemented.

The attached patch has been tested for Eigen 3.2.9.

Kind regards,
Matthias
Comment 1 Christoph Hertzberg 2016-09-23 07:53:01 UTC
Could you please switch to the development branch?
We have several of them implemented -- partially in the unsupported/SpecialFunctions module. 
I think only asinh, acosh and atanh are missing.

The 3.2 branch shall mostly get bug fixes only.
Comment 2 Christoph Hertzberg 2018-12-27 23:27:05 UTC
*** Bug 1653 has been marked as a duplicate of this bug. ***
Comment 3 Christoph Hertzberg 2018-12-27 23:30:19 UTC
The inverse hyperbolic functions have implementations, but it looks like they are not available via the public API.

Looks simple enough for 3.4
Comment 4 Gael Guennebaud 2019-01-16 13:22:14 UTC
Eventually, Rasmus did the work: https://bitbucket.org/eigen/eigen/commits/bf07dcddde
Comment 5 Nobody 2019-12-04 16:18:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1305.