Created
November 8, 2017 01:13
-
-
Save wadejensen/69a6aa949c5514c340dc58a9c41760a1 to your computer and use it in GitHub Desktop.
Trying to work out why line 5 is super expensive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
var alpha = atan2(sLambda * cEpsilon, cLambda) | |
// This calculation is 100X more expensive than trig functions on NDArray of same size | |
val temp = alpha.cond( Conditions.lessThan(0.0) ) * (2 * math.Pi) | |
val alpha2 = alpha + temp | |
val delta = asin(sLambda * sEpsilon) | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment