Re: [eigen] Re: Missing methods on complex Matrix/Vector/Array |

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

*To*: eigen <eigen@xxxxxxxxxxxxxxxxxxx>*Subject*: Re: [eigen] Re: Missing methods on complex Matrix/Vector/Array*From*: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>*Date*: Thu, 20 Jun 2013 09:43:57 +0200*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=yXDZ6qRXop57qAdgAPwSTCEAdH/QV1HSvm/lY3FmEvM=; b=dpkR4TW9GK603QYfBuBWhwXw8itrcMaddaKb+P7WbTfOJw7jZJjDHIwJSPTiZ89vZY c8TiVOI4pJ9a1pvpdiREgf306rCdnVOELCd9cG9iCQt9k0CrkIqTx1K6S9Uob+ajeqoC +hZmo4GTr3gZIK0sx2KuHba3ZNHnUAymn8ni8tDTpOGay3U1BAPuYqKvTneXwbWtVPh3 2eZIsBViUoFIZBssXGCxPOrA2yI0kdsiY5RJ3hve7OLClCClanWcSbRKEOSKQEogTiKM M/RukAm3TOQuG3fZu+kUOpf4m/yU4yIpthCw6Rvtqek0NWFk2bdzw2mmnGiIz6GcZKG+ uC9g==

Hi, - conj() already exists. - regarding norm(), it would be too confusing to support it, especially the way the std defines it, i.e., as the coefficient-wise Euclidean squared norm. We have array.abs2() for that. - ok to add the others. For each of them, the different steps are: 1 - implement the respective functor in src/Core/Functors.h (for instance search for _cos_ for a model) 2 - add the ArrayBase member in src/plugins/ArrayCwiseUnaryOps.h (again search for cos() for a model) 3 - add the respective free-function in src/Core/GlobalFunctions.h 4 - add respective unit tests in test/array.cpp once you're happy you can submit a patch there: http://eigen.tuxfamily.org/bz/show_bug.cgi?id=100 thanks for looking at this, gael On Thu, Jun 20, 2013 at 3:18 AM, Dale Lukas Peterson <hazelnusse@xxxxxxxxx> wrote: > On Wed, Jun 19, 2013 at 5:45 PM, Dale Lukas Peterson > <hazelnusse@xxxxxxxxx> wrote: >> I was trying to take the argument of an Array of complex<double> >> types, but found that this method is not available, even though ones >> like real(), imag(), abs() are. Is there a design reason for this, or >> does it simply just need some development time to make it happen? >> >> If there isn't a reason other than it just hasn't been implemented, I >> can try to work on this. >> >> Luke > > It seems that the following functions that are overload for > std::complex types from the STL are not available as methods of Array: > arg() > norm() > conj() > polar() > cosh() > log10() > sinh() > tanh() > > Also, when Array is real, the pow() method does not work for complex > powers, even though that functionality is provided by std::pow(); > > Luke > >

**References**:**[eigen] Missing methods on complex Matrix/Vector/Array***From:*Dale Lukas Peterson

**[eigen] Re: Missing methods on complex Matrix/Vector/Array***From:*Dale Lukas Peterson

**Messages sorted by:**[ date | thread ]- Prev by Date:
**[eigen] Re: Missing methods on complex Matrix/Vector/Array** - Next by Date:
**Re: [eigen] Pull request for unsuported divide and conquert SVD** - Previous by thread:
**[eigen] Re: Missing methods on complex Matrix/Vector/Array** - Next by thread:
**[eigen] An input operator, please (this years' petition)**

Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |