IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 207


Ignore:
Timestamp:
Mar 10, 2004, 3:52:23 PM (22 years ago)
Author:
Paul Price
Message:

Added #define PS_MATH_H stuff, and put the examples in comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/include/psMath.h

    r206 r207  
     1#if !defined (PS_MATH_H)
     2#define PS_MATH_H
    13
    24typedef enum {                          // type of val is:
     
    3739/*** example 1: data type abstraction */
    3840
     41/*
    3942psImage A, Y;
    4043psDI a, b, x, y;
     
    4851y = psDataItemUnaryOp (NULL, b, "log");
    4952Y = y.v;
     53*/
    5054
    5155/*** example 2: explicit functions ***/
    5256
     57/*
    5358psImage A, B, Y;
    5459
    5560B = psImageOpScalar (NULL, A, "^", 2.0);
    5661Y = psImageOp (NULL, B, "log");
     62*/
    5763
    5864/* in the later example, we would have the following functions */
     
    8692/*** example 3: embedded data type */
    8793
     94/*
    8895psImage A, B, Y;
    8996
    9097B = psBinaryOp (NULL, A, "^", psScalar(2));
    9198Y = psUnaryOp (NULL, B, "log");
     99*/
    92100
    93101/** in this method, the data types (psImage, psVector) include embedded information about their data type in
     
    111119    psDimension dim;
    112120} psTypeInfo;
     121
     122#endif
Note: See TracChangeset for help on using the changeset viewer.