 branches/purecfg/TODO 2011/04/12 15:42:12 808
+++ branches/purecfg/TODO 2011/04/22 14:46:32 945
@@ 2,31 +2,25 @@
SHORT TERM ============= (for curvaturebased VR)
========================
For RGB color output of 2D transfer function (indexed by
kappa1,kappa2), or for a 1D transfer function, will need
something akin to convolution on vector images

IL support for higherorder tensor values (matrices, etc).
tensor construction [DONE]
tensor indexing [DONE]
tensor slicing
 verify that hessians work correctly
+ verify that hessians work correctly [DONE]
Outer products
 syntax [DONE]
 typechecking
 IL and codegen
+Outer products [DONE]
+
+Add M dot v, v dot M, and M dot N [DONE]
Add M dot v, v dot M, and M dot N
 typechecking [DONE]
 IL [DONE]
 codegen and runtime
+Identity matrix [DONE]
Identity matrix [DONE up to code generation]
+Zero tensor [DONE]
trace [DONE]
extend norm (exp) to tensor[3,3]
+extend norm (exp) to tensor[3,3] [DONE]
+
+Matrix addition, subtraction, and scaling [DONE]
Use ∇⊗ etc. syntax
syntax [DONE]
@@ 43,20 +37,21 @@
lerp on scalars and vectors [DONE]
+Infix "^" operator for pow() [DONE]
+
+Code generation support for 1D image data, such as RGBA transfer functions [DONE]
+
==============================
other SHORT TERM ============= (including needed for LIC)
==============================
determinant ("det") for tensor[3,3]

Decide if we want to allow redefinitions of variables
 (as in vrlitecam.diderot)

extend norm (exp) to all tensor types
+test/uninit.diderot:
+documents need for better compiler error messages when output variables
+are not initialized; the current messages are very cryptic
extend normalize to all tensor types
+determinant ("det") for tensor[3,3]
vector fields: convolution on vector images
+extend norm (exp) to all tensor types [DONE for vectors and matrices]
expand trace in mid to low translation
@@ 67,9 +62,26 @@
rgba = real{4}
==============================
MEDIUM TERM ================== (needed for streamlines & tractography)
+MEDIUM TERM ================== (including needed for streamlines & tractography)
==============================
+Want: allow X *= Y, X /= Y, X += Y, X = Y to mean what they do in C,
+provided that X*Y, X/Y, X+Y, XY are already supported.
+Nearly every Diderot program would be simplified by this.
+
+Want: ability to apply "normalize" to a field itself, e.g.
+ field#1(2)[2] V = normalize(Vimg ⊛ ctmr);
+so that V(x) = normalize((Vimg ⊛ ctmr)(x)).
+(For now, it would be okay for the differentability of V to be 0;
+later we can teach Diderot the quotient rule of derivatives.)
+Having this would simplify expression of standard LIC method, and
+would also help express other vector field expressions that arise
+in vector field feature exraction
+
+ability to declare a field in such a way so that probe
+positions are *always* clamped to the support of "inside";
+there are many cases where this is the sensible behavior
+
ability to emit/track/record variables into dynamically resized
runtime buffer
@@ 77,6 +89,16 @@
tensor fields: convolution on general tensor images
+Use of Teem's "hest" commandline parser for getting
+any input variables that are not defined in the source file
+
+Save Diderot output to nrrd, instead of "mip.txt"
+ For grid of strands, save to similarlyshaped array
+ For list of strands, save to long 1D (or 2D for nonscalar output) list
+ For ragged things (like tractography output), will need to save both
+ complete list of values, as well as list of start indices and lengths
+ to index into complete list
+
==============================
other MEDIUM TERM ============ (needed for particles)
==============================
@@ 92,7 +114,7 @@
proper handling of stabilize method
Add support for code like
+test/vrkcomp2.diderot: Add support for code like
(F1 if x else F2)@pos
@@ 103,16 +125,20 @@
other MEDIUM TERM ============
==============================
support fog Python interop and GUI
+want: warnings when "D" (reserved for differentiation) is declared as
+a variable name (get confusing error messages now)
+
+support for Python interop and GUI
==============================
LONG TERM ====================
==============================
Better handling of variables that determines the scope of a variable based on its actual use,
instead of where the user defined it. So, for example, we should lift strandinvariant variables
to global scope. Also prune out useless variables, which should include field variables after the
translation to midil.
+Better handling of variables that determines the scope of a variable
+based on its actual use, instead of where the user defined it. So,
+for example, we should lift strandinvariant variables to global
+scope. Also prune out useless variables, which should include field
+variables after the translation to midil.
co vs contra index distinction
@@ 131,10 +157,18 @@
"tensor comprehension" (like list comprehension)
+Python/ctypes interface to runtimez
+
======================
BUGS =================
======================
+test/norm2.diderot:
+"normalize()" doesn't work on vec2
+
+test/fields.diderot:
+documents various bugs/questions associated with field expressions
+
test/mipcam.diderot:
// generated C code looks like "(float)p_ui_00.5e0f"
//real rayU = 2.0*camUmax*(real(ui)  0.5)/real(imgResU)  camUmax;
@@ 152,5 +186,3 @@
// uncaught exception Size [size]
// raised at ctarget/ctarget.sml:47.1547.19
//field#4(3)[] F = img ⊛ bspln5;

