From: Diemo S. <di...@us...> - 2007-02-16 08:39:46
|
Update of /cvsroot/jmax/jmax/packages/data/c/src In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv11576/components/jmax/packages/data/c/src Modified Files: fmat.c fvec.c Log Message: ramp function better with documentation Index: fmat.c =================================================================== RCS file: /cvsroot/jmax/jmax/packages/data/c/src/fmat.c,v retrieving revision 1.154 retrieving revision 1.155 diff -C2 -d -r1.154 -r1.155 *** fmat.c 16 Feb 2007 08:33:07 -0000 1.154 --- fmat.c 16 Feb 2007 08:39:42 -0000 1.155 *************** *** 4560,4563 **** --- 4560,4564 ---- fts_class_doc(cl, fts_s_fill, "<num: value>", "fill with given value or pattern of values"); fts_class_doc(cl, fts_s_fill, "<expr: expression>", "fill with given expression (use $self, $row and $col)"); + fts_class_doc(cl, fts_new_symbol("ramp"), "[<num: start value> <num: end value>]", "fill fmat with linear sequence of values going from start to end"); fts_class_doc(cl, fts_new_symbol("zero"), "[<num: row index> <num: column index> [<num: # of elements>]]", "zero given number of elements starting from indicated element (row by row)"); Index: fvec.c =================================================================== RCS file: /cvsroot/jmax/jmax/packages/data/c/src/fvec.c,v retrieving revision 1.164 retrieving revision 1.165 diff -C2 -d -r1.164 -r1.165 *** fvec.c 16 Feb 2007 08:33:08 -0000 1.164 --- fvec.c 16 Feb 2007 08:39:42 -0000 1.165 *************** *** 2448,2451 **** --- 2448,2452 ---- fts_class_doc(cl, fts_s_fill, "<num: value>", "fill with given value or pattern of values"); fts_class_doc(cl, fts_s_fill, "<expr: expression>", "fill with given expression (use $self, $row for index)"); + fts_class_doc(cl, fts_new_symbol("ramp"), "[<num: start value> <num: end value>]", "fill fvec with linear sequence of values going from start to end"); fts_class_doc(cl, fts_new_symbol("lookup"), "<fmat|fvec|bpf: function>", "apply given function (by linear interpolation)"); |