Changeset 207
- Timestamp:
- Mar 10, 2004, 3:52:23 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psMath.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psMath.h
r206 r207 1 #if !defined (PS_MATH_H) 2 #define PS_MATH_H 1 3 2 4 typedef enum { // type of val is: … … 37 39 /*** example 1: data type abstraction */ 38 40 41 /* 39 42 psImage A, Y; 40 43 psDI a, b, x, y; … … 48 51 y = psDataItemUnaryOp (NULL, b, "log"); 49 52 Y = y.v; 53 */ 50 54 51 55 /*** example 2: explicit functions ***/ 52 56 57 /* 53 58 psImage A, B, Y; 54 59 55 60 B = psImageOpScalar (NULL, A, "^", 2.0); 56 61 Y = psImageOp (NULL, B, "log"); 62 */ 57 63 58 64 /* in the later example, we would have the following functions */ … … 86 92 /*** example 3: embedded data type */ 87 93 94 /* 88 95 psImage A, B, Y; 89 96 90 97 B = psBinaryOp (NULL, A, "^", psScalar(2)); 91 98 Y = psUnaryOp (NULL, B, "log"); 99 */ 92 100 93 101 /** in this method, the data types (psImage, psVector) include embedded information about their data type in … … 111 119 psDimension dim; 112 120 } psTypeInfo; 121 122 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
