moved transpose to hyperpoint

This commit is contained in:
Zeno Rogue 2019-08-10 00:29:03 +02:00
parent aa1b3f3057
commit a9ff4e64f8
2 changed files with 8 additions and 8 deletions

View File

@ -791,6 +791,14 @@ EX ld ortho_error(transmatrix T) {
return err;
}
EX transmatrix transpose(transmatrix T) {
transmatrix result;
for(int i=0; i<MDIM; i++)
for(int j=0; j<MDIM; j++)
result[j][i] = T[i][j];
return result;
}
#if HDR
inline hyperpoint cpush0(int c, ld x) {
hyperpoint h = Hypc;

View File

@ -581,14 +581,6 @@ EX namespace nisot {
return at;
}
EX transmatrix transpose(transmatrix T) {
transmatrix result;
for(int i=0; i<MDIM; i++)
for(int j=0; j<MDIM; j++)
result[j][i] = T[i][j];
return result;
}
EX transmatrix parallel_transport_bare(transmatrix Pos, transmatrix T) {
hyperpoint h = tC0(T);