mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-01 08:31:59 +00:00
d0e2c0a9d9
Saves having to recompile for a different algebra. Right now, just `-a p,m,z` is supported.
35 lines
718 B
Objective-C
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
|