forked from natikgadzhi/XNMaths
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathXNLinearEquationSystem.h
More file actions
37 lines (27 loc) · 998 Bytes
/
XNLinearEquationSystem.h
File metadata and controls
37 lines (27 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// XNLinearEquationSystem.h
// Assignation 3.2
//
// Linear Equations system class.
// Only supports solving with sweep (spline) method.
//
// Created by Нат Гаджибалаев on 15.11.09.
// Copyright 2009 Нат Гаджибалаев. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "XNVector.h"
#import "XNMatrix.h"
@interface XNLinearEquationSystem : NSObject {
// some data of the equation system.
XNMatrix *equationMatrix;
XNMatrix *leftSideMatrix;
XNVector *rightSideVector;
NSUInteger iterationsSpent, iterationsLimit;
}
@property(readonly) NSUInteger iterationsSpent, iterationsLimit;
#pragma mark -
#pragma mark Initialization methods
- (XNLinearEquationSystem *) initWithMatrix: (XNMatrix *)newEquationMatrix;
- (XNVector *) sweep;
- (XNVector *) solveWithMaxIterations: (NSUInteger) iterationsLimit withPrecision: (CGFloat) precision withFirstApproximation: (XNVector*) firstApproximation allowRelaxation: (BOOL) allowRelaxation;
@end