diff --git a/hyperpoint.cpp b/hyperpoint.cpp index 3e753a03..0998d148 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -96,11 +96,15 @@ struct hyperpoint : array { ); } - // inner product - inline friend ld operator | (hyperpoint h1, hyperpoint h2) { + friend ld dot_d(int c, hyperpoint h1, hyperpoint h2) { ld sum = 0; - for(int i=0; i