|
From: <kin...@us...> - 2003-11-06 14:44:39
|
Update of /cvsroot/teem/teem/src/unrrdu
In directory sc8-pr-cvs1:/tmp/cvs-serv23328/unrrdu
Modified Files:
1op.c
Log Message:
added nrrdUnaryOpRand, accessible via unu 1op rand
Index: 1op.c
===================================================================
RCS file: /cvsroot/teem/teem/src/unrrdu/1op.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** 1op.c 23 Jul 2003 01:20:30 -0000 1.16
--- 1op.c 6 Nov 2003 14:44:35 -0000 1.17
***************
*** 44,48 ****
"\b\bo \"abs\": absolute value\n "
"\b\bo \"sgn\": -1, 0, 1 if value is <0, ==0, or >0\n "
! "\b\bo \"exists\": 1 iff not NaN or +/-Inf, 0 otherwise",
NULL, nrrdUnaryOp);
hestOptAdd(&opt, "t", "type", airTypeOther, 1, 1, &type, "default",
--- 44,49 ----
"\b\bo \"abs\": absolute value\n "
"\b\bo \"sgn\": -1, 0, 1 if value is <0, ==0, or >0\n "
! "\b\bo \"exists\": 1 iff not NaN or +/-Inf, 0 otherwise\n "
! "\b\bo \"rand\": random number in [0.0,1.0), no relation to input",
NULL, nrrdUnaryOp);
hestOptAdd(&opt, "t", "type", airTypeOther, 1, 1, &type, "default",
***************
*** 77,80 ****
--- 78,84 ----
} else {
ntmp = nin;
+ }
+ if (nrrdUnaryOpRand == op) {
+ airSrand();
}
if (nrrdArithUnaryOp(nout, op, ntmp)) {
|