IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 15, 2023, 4:59:00 AM (3 years ago)
Author:
eugene
Message:

fixing tests so they compile (need to address some API changes to psPlaneTranformAlloc, psImageMapFit; fix unused vars, etc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/psLib/test/math/tap_psSparse.c

    r13124 r42493  
    1     #include <stdio.h>
     1#include <stdio.h>
    22#include <string.h>
    33#include <pslib.h>
     
    227227        // test the support functions: LowerProduct
    228228        fVec = psSparseBorderLowerProduct(NULL, border, xRef);
    229         is_float(fVec->n, 1.0, "f dimen: %d", fVec->n);
     229        is_int(fVec->n, 1.0, "f dimen: %d", fVec->n);
    230230        is_float(fVec->data.F32[0], 0.3, "f(0): %f", fVec->data.F32[0]);
    231231        psFree(fVec);
     
    233233        // test the support functions: Upper Product
    234234        fVec = psSparseBorderUpperProduct(NULL, border, yRef);
    235         is_float(fVec->n, 2.0, "f dimen: %d", fVec->n);
     235        is_int(fVec->n, 2.0, "f dimen: %d", fVec->n);
    236236        is_float(fVec->data.F32[0], 0.05, "f(0): %f", fVec->data.F32[0]);
    237237        is_float(fVec->data.F32[1], 0.10, "f(0): %f", fVec->data.F32[1]);
     
    240240        // test the support functions: Square Product
    241241        fVec = psSparseBorderSquareProduct(NULL, border, yRef);
    242         is_float(fVec->n, 1.0, "f dimen: %d", fVec->n);
     242        is_int(fVec->n, 1.0, "f dimen: %d", fVec->n);
    243243        is_float(fVec->data.F32[0], 0.25, "f(0): %f", fVec->data.F32[0]);
    244244        psFree(fVec);
Note: See TracChangeset for help on using the changeset viewer.