You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I asked a question on wikipedia (mathematics helpdesk, 24 April 2019), about transforming kform objects to another coordinate system. The question asked how to express a kform like dx_1 ^ dx_2 ^ dx_3 in terms of dy_1,dy_2,dy_3 where we have linear relationships like dx_1=M[1,1]dy_1 + M[1,2]dy_2 + M[1,3]dy_3. I wanted to know if there was a conceptually pleasant way of doing this.
Well the best I can do is this:
f <- function(omega,M){
Reduce(`+`,sapply(seq_along(value(omega)),function(i){do.call("wedge",apply(M[index(omega)[i,,drop=FALSE],,drop=FALSE],1,as.1form))*value(omega)[i]},simplify=FALSE))
}
But this takes a very long time to run and I can't help thinking that there might be some factorization or other trick or technique that would make the code run faster, and perhaps more transparently.
The text was updated successfully, but these errors were encountered:
I asked a question on wikipedia (mathematics helpdesk, 24 April 2019), about transforming kform objects to another coordinate system. The question asked how to express a kform like
dx_1 ^ dx_2 ^ dx_3
in terms ofdy_1,dy_2,dy_3
where we have linear relationships likedx_1=M[1,1]dy_1 + M[1,2]dy_2 + M[1,3]dy_3
. I wanted to know if there was a conceptually pleasant way of doing this.Well the best I can do is this:
which is pretty dense idiom. But:
and indeed we can transform and then transform back to the original coordinates with only small numerical error:
But this takes a very long time to run and I can't help thinking that there might be some factorization or other trick or technique that would make the code run faster, and perhaps more transparently.
The text was updated successfully, but these errors were encountered: