IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 7, 2010, 7:34:38 PM (16 years ago)
Author:
Paul Price
Message:

Check types and sizes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psMinimizePowell.c

    r28634 r28635  
    778778    psMinimizeChi2PowellFunc model)
    779779{
     780    PS_ASSERT_VECTOR_NON_NULL(params, false);
     781    PS_ASSERT_VECTOR_TYPE(params, PS_TYPE_F32, false);
     782    PS_ASSERT_ARRAY_NON_NULL(coords, false);
     783    PS_ASSERT_VECTOR_NON_NULL(value, false);
     784    PS_ASSERT_VECTOR_TYPE(value, PS_TYPE_F32, false);
     785    PS_ASSERT_VECTORS_SIZE_EQUAL(coords, value, false);
     786
    780787    // Generate extended version of coords array, so we can pass in extra data to the chi^2 function
    781788    psArray *newCoords = psArrayAlloc(coords->n + 3);
Note: See TracChangeset for help on using the changeset viewer.