IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 16, 2005, 1:07:10 PM (20 years ago)
Author:
desonia
Message:

removed *(type*)& syntax for setting const values of struts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psMinimize.h

    r5176 r5530  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.59 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-09-29 02:16:19 $
     10 *  @version $Revision: 1.60 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2005-11-16 23:06:19 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5252psMinimization;
    5353
    54 /** Allocates a psMinimization structure.
    55  *
    56  *  @return psMinimization* :   a new psMinimization struct
    57 */
    58 psMinimization *psMinimizationAlloc(
    59     int maxIter,                       ///< Number of minimization iterations to perform.
    60     float tol                          ///< Requested error tolerance
    61 );
     54#define P_PSMINIMIZATION_SET_MAXITER(m,val) *(int*)&m->maxIter = val
     55        #define P_PSMINIMIZATION_SET_TOL(m,val) *(float*)&m->tol = val
     56
     57
     58                /** Allocates a psMinimization structure.
     59                 *
     60                 *  @return psMinimization* :   a new psMinimization struct
     61                */
     62                psMinimization *psMinimizationAlloc(
     63                    int maxIter,                       ///< Number of minimization iterations to perform.
     64                    float tol                          ///< Requested error tolerance
     65                );
    6266
    6367/** Checks the type of a particular pointer.
Note: See TracChangeset for help on using the changeset viewer.