Home My Page Projects Code Snippets Project Openings diderot

# SCM Repository

[diderot] Diff of /branches/pure-cfg/TODO
 [diderot] / branches / pure-cfg / TODO

# Diff of /branches/pure-cfg/TODO

revision 784, Fri Apr 8 01:56:35 2011 UTC revision 897, Wed Apr 20 17:21:41 2011 UTC
# Line 2  Line 2
2  SHORT TERM =============  (for curvature-based VR)  SHORT TERM =============  (for curvature-based VR)
3  ========================  ========================
4
5  Outer products  vector fields: convolution on vector images
6      syntax [DONE]      (image orientation not quite working)
typechecking
IL and codegen
7
8  Add M dot v, v dot M, and M dot N  IL support for higher-order tensor values (matrices, etc).
9        tensor construction [DONE]
10        tensor indexing [DONE]
11        tensor slicing
12        verify that hessians work correctly [DONE]
13
14  Identity matrix [DONE up to code generation]  Outer products [DONE]
15
16  determinant ("det") for tensor[3,3]  Add M dot v, v dot M, and M dot N [DONE]
17
18  trace [DONE]  Identity matrix [DONE]
19
20  expand trace in mid to low translation  Zero tensor [DONE]
21
22  extend norm (|exp|) to all tensor types  trace [DONE]
23
24  extend normalize to all tensor types  extend norm (|exp|) to tensor[3,3] [DONE]
25
26  Use ∇⊗ etc syntax  Matrix addition, subtraction, and scaling  [DONE]
27
28    Use ∇⊗ etc. syntax
29      syntax [DONE]      syntax [DONE]
30      typechecking      typechecking
31      IL and codegen      IL and codegen
# Line 32  Line 36
36          value construction: '{' e1 ',' … ',' en '}'          value construction: '{' e1 ',' … ',' en '}'
37          indexing: e '{' e '}'          indexing: e '{' e '}'
38
IL support for higher-order tensor values (matrices, etc).
tensor construction
tensor indexing and slicing
verify that hessians work correctly

Add type aliases for color types
rgb = real{3}
rgba = real{4}

Decide if we want to allow redefinitions of variables
(as in vr-lite-cam.diderot)

39  Infix dot product and cross product [DONE]  Infix dot product and cross product [DONE]
40
41  lerp on scalars and vectors [DONE]  lerp on scalars and vectors [DONE]
42
43    Infix "^" operator for pow() [DONE]
44
45    Code generation support for 1D image data, such as RGBA transfer functions [DONE]
46
47  ==============================  ==============================
48  other SHORT TERM =============  (needed for LIC)  other SHORT TERM =============  (including needed for LIC)
49  ==============================  ==============================
50
51  vector fields: convolution on vector images  determinant ("det") for tensor[3,3]
52
53    extend norm (|exp|) to all tensor types [DONE for vectors and matrices]
54
55    expand trace in mid to low translation
56
57    value-numbering optimization
58
59    Add type aliases for color types
60        rgb = real{3}
61        rgba = real{4}
62
63  ==============================  ==============================
64  MEDIUM TERM ================== (needed for streamlines & tractography)  MEDIUM TERM ================== (including needed for streamlines & tractography)
65  ==============================  ==============================
66
67  ability to emit/track/record variables into dynamically re-sized  ability to emit/track/record variables into dynamically re-sized
# Line 65  Line 71
71
72  tensor fields: convolution on general tensor images  tensor fields: convolution on general tensor images
73
74    Use of Teem's "hest" command-line parser for getting
75    any input variables that are not defined in the source file
76
77    Save Diderot output to nrrd, instead of "mip.txt"
78      For grid of strands, save to similarly-shaped array
79      For list of strands, save to long 1-D (or 2-D for non-scalar output) list
80      For ragged things (like tractography output), will need to save both
81        complete list of values, as well as list of start indices and lengths
82        to index into complete list
83
84  ==============================  ==============================
85  other MEDIUM TERM ============ (needed for particles)  other MEDIUM TERM ============ (needed for particles)
86  ==============================  ==============================
# Line 80  Line 96
96
97  proper handling of stabilize method  proper handling of stabilize method
98
99    test/vr-kcomp2.diderot: Add support for code like
100
101            (F1 if x else F2)@pos
102
103    This will require duplication of the continuation of the conditional (but we should only
104    duplicate over the live-range of the result of the conditional.
105
106    ==============================
107    other MEDIUM TERM ============
108    ==============================
109
110    want: warnings when D (and likely I) is declared as a
111    variable name (now get confusing error messages now)
112
113    support for Python interop and GUI
114
115  ==============================  ==============================
116  LONG TERM ====================  LONG TERM ====================
117  ==============================  ==============================
118
119    Better handling of variables that determines the scope of a variable based on its actual use,
120    instead of where the user defined it.  So, for example, we should lift strand-invariant variables
121    to global scope.  Also prune out useless variables, which should include field variables after the
122    translation to mid-il.
123
124  co- vs contra- index distinction  co- vs contra- index distinction
125
126  add ":" for tensor dot product (contracts out two indices  add ":" for tensor dot product (contracts out two indices
# Line 101  Line 138
138
139  "tensor comprehension" (like list comprehension)  "tensor comprehension" (like list comprehension)
140
141    Python/ctypes interface to run-timez
142
143  ======================  ======================
144  BUGS =================  BUGS =================
145  ======================  ======================
# Line 112  Line 151
151  test/vr-kcomp.diderot:  test/vr-kcomp.diderot:
152      // HEY (scoping BUG): the strand parameters (e.g. ui, vi) ...      // HEY (scoping BUG): the strand parameters (e.g. ui, vi) ...
153
test/vr-lite-cam.diderot:
// HEY (BUG): these:
//   vec3 lightVspDir = [1.0, -0.0, 0.0];
//   vec3 lightVspDir = [1.0, 0.0, -0.0];
// work okay but this:
//   vec3 lightVspDir = [1.0, 0.0, 0.0]; ...

154  test/zslice2.diderot:  test/zslice2.diderot:
155  // but is this not valid syntax for creating field in one shot?  // but is this not valid syntax for creating field in one shot?
156  //field#2(3)[] F = (load("../data/zimg112.nrrd")) ⊛ bspln3;  //field#2(3)[] F = (load("../data/zimg112.nrrd")) ⊛ bspln3;

Legend:
 Removed from v.784 changed lines Added in v.897