|Re: [eigen] sse asin implementation|
[ Thread Index |
| More lists.tuxfamily.org/eigen Archives
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] sse asin implementation
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Tue, 31 Mar 2009 17:04:49 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=kSw8Sf8tMIOPcSsjfB9MFdxCKRkVeFxFwYlM82X5AZI=; b=k5s0DIhAnx/9YY9hepDW0rg8WXOoAYfIv58rkLSd/iQJ0S4EXrXV0H8yx7fYon1PCq +t24sc26xsJkARqLj4cZhnSiu4kjIMkCO0Miqvg8VzQ2kulJgcpQEQiG3j7nN1INh2MD Qb+t6flwEshTUBr0Sg5U5RpIXFCj9DthIlIvw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=P84CnrZPyWU6JmXK3fkXrnxjgfi2ET4yB0bgTcJrhx8pYoYjQnq/gaOChMzBluv5ib YAm4wjt27ZVkxvCi5gdnTdUH918XhL5m5hO3LPqcAC5e/v+7VI1JDhI83lgQc5+dN9dL 7iXXjiVnxJ4w2VGCB4yVLZLOqDUJFpruK1Lh4=
2009/3/31 Rohit Garg <rpg.314@xxxxxxxxx>:
> On Tue, Mar 31, 2009 at 8:18 PM, Benoit Jacob <jacob.benoit.1@xxxxxxxxx> wrote:
>> What is the motivation for vectorizing asin in Eigen? Do you mean for
>> people who want a "cwise asin" on a vector? Do you have a use case for
> Yes. The page on TODO says that transendental functions could be
> vectorized and since recently sin, cos, log, exp for floats were
> committed, I thought that eigen could do with other transcendental
> functions as well. I was planning to implement more transcendentals in
> the future, but if this is not useful, please tell me.
Well, the TODO only mentioned very common functions like sin, cos,
log, exp, for which use cases abound, for example, not long ago on
this list, Jos Vandenoever had a use case for vectorized cwise sin or
cos on vectors.
So vectorizing sin, cos, log, exp, as well as sqrt and perhaps
inverse_sqrt, is definitely useful.
But the inverse trigonometric functions like asin, acos, atan, are
much less commonly used. What's more, they tend to be used most of the
time on single isolated numbers, not on all coeffs of a vector. So
it's not clear if a vectorized asin would be used. I would prefer to
wait for use cases to appear.
I guess I should have replied sooner but since I didn't take part in
the earlier discussion I was hesitant.