IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 6, 2004, 1:38:49 PM (22 years ago)
Author:
gusciora
Message:

Error checking for NULL inputs, and memory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/dataManip/psMinimize.c

    r1991 r1992  
    99 *  @author GLF, MHPCC
    1010 *
    11  *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-10-06 23:29:16 $
     11 *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-10-06 23:38:49 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1818 *  XXX: Section 4.5.1.1 (predefined functions for Gauss minimization via
    1919 *       LMM) is not addressed here.  We are waiting for subsequent SDRs
    20  *       which will redfeine the LMM functions.
     20 *       which will redefine the LMM functions.
    2121 *
    2222 */
     
    424424                      psMinimizeLMChi2Func func)
    425425{
     426    PS_CHECK_NULL_PTR_RETURN_NULL(min);
     427    PS_CHECK_NULL_VECTOR_RETURN_NULL(params);
     428    PS_CHECK_EMPTY_VECTOR_RETURN_NULL(params);
     429    PS_CHECK_NULL_PTR_RETURN_NULL(coords);
     430    PS_CHECK_NULL_VECTOR_RETURN_NULL(value);
     431    PS_CHECK_EMPTY_VECTOR_RETURN_NULL(value);
     432    if (paramMask != NULL) {
     433        PS_CHECK_VECTOR_SIZE_EQUAL_RETURN_NULL(params, paramMask);
     434    }
    426435    psTrace(".psLib.dataManip.psMinimizeLMChi2", 4,
    427436            "---- psMinimizeLMChi2() begin ----\n");
     
    12991308 
    13001309XXX: Must define behavior on various NULL inputs.
     1310 
     1311XXX: Check for F32 types?
    13011312 *****************************************************************************/
    13021313bool psMinimizePowell(psMinimization *min,
Note: See TracChangeset for help on using the changeset viewer.