diff --git a/hyperpoint.cpp b/hyperpoint.cpp index d4b9ec4a..6cd6a419 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -451,6 +451,14 @@ EX bool zero_d(int d, hyperpoint h) { return true; } +/** inner product in the current geometry */ + +EX ld geo_inner(const hyperpoint &h1, const hyperpoint &h2) { + ld res = 0; + for(int i=0; i