IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 22, 2005, 9:54:55 AM (21 years ago)
Author:
magnier
Message:

fixed compilation bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_rel8_b1/psLib/src/math/psPolynomial.c

    r5566 r5570  
    77*  polynomials.  It also contains a Gaussian functions.
    88*
    9 *  @version $Revision: 1.130.4.1.2.1 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2005-11-22 18:04:28 $
     9*  @version $Revision: 1.130.4.1.2.2 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2005-11-22 19:54:55 $
    1111*
    1212*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    784784}
    785785
    786 
    787 
    788 
    789 
    790 
    791 
    792 
    793 
    794 
    795 
    796 
    797 
    798 
    799 
    800 
    801 
    802 
    803 
    804 
    805 
    806 
    807 
    808786psF64 psPolynomial1DEval(const psPolynomial1D* poly,
    809787                         psF64 x)
     
    829807    PS_ASSERT_POLY_NON_NULL(poly, NULL);
    830808    PS_ASSERT_VECTOR_NON_NULL(x, NULL);
    831     // PS_ASSERT_VECTOR_TYPE(x, PS_TYPE_F64, NULL);
     809    PS_ASSERT_VECTOR_TYPE_F32_OR_F64(x, NULL);
    832810
    833811    psVector *tmp;
    834812
    835     switch (x->type) {
     813    switch (x->type.type) {
    836814    case PS_TYPE_F64:
    837815        tmp = psVectorAlloc(x->n, PS_TYPE_F64);
     
    880858    PS_ASSERT_POLY_NON_NULL(poly, NULL);
    881859    PS_ASSERT_VECTOR_NON_NULL(x, NULL);
    882     PS_ASSERT_VECTOR_TYPE(x, PS_TYPE_F64, NULL);
     860    PS_ASSERT_VECTOR_TYPE_F32_OR_F64(x, NULL);
    883861    PS_ASSERT_VECTOR_NON_NULL(y, NULL);
    884     PS_ASSERT_VECTOR_TYPE(y, PS_TYPE_F64, NULL);
     862    PS_ASSERT_VECTOR_TYPE_F32_OR_F64(y, NULL);
    885863
    886864    psVector *tmp;
     
    892870    }
    893871
    894     switch (x->type) {
     872    switch (x->type.type) {
    895873    case PS_TYPE_F32:
    896         if (y->type != x->type) {
     874        if (y->type.type != x->type.type) {
    897875            psError(PS_ERR_UNKNOWN, true, "type mismatch in data vectors");
    898876            return (NULL);
     
    908886        break;
    909887    case PS_TYPE_F64:
    910         if (y->type != x->type) {
     888        if (y->type.type != x->type.type) {
    911889            psError(PS_ERR_UNKNOWN, true, "type mismatch in data vectors");
    912890            return (NULL);
Note: See TracChangeset for help on using the changeset viewer.