quakeforge/ruamoko/gatest/algebra.h
Bill Currie d0e2c0a9d9 [gatest] Allow specifying the algebra on the command line
Saves having to recompile for a different algebra. Right now, just
`-a p,m,z` is supported.
2023-05-29 15:14:59 +09:00

35 lines
718 B
Objective-C

#ifndef __algebra_h
#define __algebra_h
#include "Object.h"
@class Metric;
@class BasisGroup;
@class BasisLayout;
@class MultiVector;
@interface Algebra : Object
{
Metric *metric;
BasisGroup **grades;
BasisLayout *layout;
int num_components;
int dimension;
int plus, minus, zero;
}
+(Algebra *) R:(int)p, int m, int z;
+(Algebra *) PGA:(int)n;
-(void) print;
-(BasisGroup *)grade:(int)k;
-(BasisLayout *)layout;
-(Metric *) metric;
-(int)count;
-(int)dimension;
-(MultiVector *) group:(int)group;
-(MultiVector *) group:(int)group values:(double *)values;
-(MultiVector *) ofGrade:(int)grade;
-(MultiVector *) ofGrade:(int)grade values:(double *)values;
@end
#endif//__algebra_h