moved transpose to hyperpoint

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:50:12 +02:00
1 parent aa1b3f3057
commit a9ff4e64f8
2 files changed
+8 -8

No files matched your search

+8
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;