-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2906299
commit b97574d
Showing
33 changed files
with
5,293 additions
and
505 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
export {invMatrix} from './wasm/get-inv-matr'; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Control constants | ||
export const CONTROL_TAG = '#'; | ||
export const CONTROL_TAG_LEN = CONTROL_TAG.length; | ||
export const DF_NAME = 'df'; | ||
const META = `${CONTROL_TAG}meta`; | ||
export const MAX_LINE_CHART = 4; | ||
|
||
/** Control expressions for the problem specifying */ | ||
export enum CONTROL_EXPR { | ||
NAME = `${CONTROL_TAG}name`, | ||
TAGS = `${CONTROL_TAG}tags`, | ||
DESCR = `${CONTROL_TAG}description`, | ||
DIF_EQ = `${CONTROL_TAG}equations`, | ||
EXPR = `${CONTROL_TAG}expressions`, | ||
ARG = `${CONTROL_TAG}argument`, | ||
INITS = `${CONTROL_TAG}inits`, | ||
CONSTS = `${CONTROL_TAG}constants`, | ||
PARAMS = `${CONTROL_TAG}parameters`, | ||
TOL = `${CONTROL_TAG}tolerance`, | ||
LOOP = `${CONTROL_TAG}loop`, | ||
UPDATE = `${CONTROL_TAG}update`, | ||
RUN_ON_OPEN = `${META}.runOnOpen`, | ||
RUN_ON_INPUT = `${META}.runOnInput`, | ||
OUTPUT = `${CONTROL_TAG}output`, | ||
COMMENT = `${CONTROL_TAG}comment`, | ||
SOLVER = `${META}.solver`, | ||
INPUTS = `${META}.inputs`, | ||
}; | ||
|
||
/** Loop consts */ | ||
export enum LOOP { | ||
MIN_LINES_COUNT = 1, | ||
COUNT_IDX = 0, | ||
COUNT_NAME = '_count', | ||
MIN_COUNT = 1, | ||
}; | ||
|
||
/** UPDATE consts */ | ||
export enum UPDATE { | ||
MIN_LINES_COUNT = 1, | ||
DURATION_IDX = 0, | ||
DURATION = '_duration', | ||
}; | ||
|
||
/** Ranges of the solver options */ | ||
export const SOLVER_OPTIONS_RANGES = new Map([ | ||
['maxTime', {min: 1, max: 10000}], | ||
['scale', {min: 0.5, max: 1}], | ||
]); | ||
|
||
export const TINY = 0.0001; | ||
export const STEP_RATIO = 0.5; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.