-
Notifications
You must be signed in to change notification settings - Fork 1
/
Incremental_Code_Generation.txt
58 lines (46 loc) · 1.52 KB
/
Incremental_Code_Generation.txt
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#Author: Todor Arnaudov, 20.4.2019
* Map
# WHAT is?
@ WHY?
-- coordinates, selection
* PRINCIPLES
-- SELECTION
-- HOW? -- CONDITIONS: ...
--- IF ... different values ...
-- INCREMENTAL
-- WHAT?
-- PRIMARY: COORDINATES, INPUT
-- DIMENSIONS (Knowledge how to represent them)
0D: Variable #scalar
1D: List #vector
1D: Tuple
1D+Idents: Namedtuple #connected to idents
2D: Numpy array : shape, ... -> mapping to 1D, to 0D ... coordinates
Initializations, types, ... .zeros, .ones, ... .shape ... dtype=int, dtype=bool
--- bool is primary selection=differentiation type, IF
-- ADDRESSING
-- Ident (Scope)
List of lists
NP arrays
Indexing: Numpy array ~ Multi-dimensional lists
-- ITERATIONS
-- Generalized definitions of the traversal
Traverse(source=dert__, start_index= , set = ...from=)
#?will it be shorter than the full code?
-- Unfold/Have templates for one by one setting
-- Then compress (if possible) - can be manual
Summation: [Target summation addresses frame[0] ... ]
frame[0][0] += I
frame[0][1] += Dy
frame[0][2] += Dx
frame[0][3] += G
-- COUNTING
-- During iterations, scanning
+1 ...
-- RANGES
-- start, end
-- minimum, maximum
-- left, right x0, xn; y0, yn
-- GROUP by Identifiers
x: x, x0, _x, _x0, xn, _xn
y: y, y0, _y, _y0, yn, _yn