Changeset 5570 for branches/eam_rel8_b1/psLib/src/math/psPolynomial.c
- Timestamp:
- Nov 22, 2005, 9:54:55 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_rel8_b1/psLib/src/math/psPolynomial.c
r5566 r5570 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.130.4.1.2. 1$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-11-22 1 8: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 $ 11 11 * 12 12 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 784 784 } 785 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 786 psF64 psPolynomial1DEval(const psPolynomial1D* poly, 809 787 psF64 x) … … 829 807 PS_ASSERT_POLY_NON_NULL(poly, NULL); 830 808 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); 832 810 833 811 psVector *tmp; 834 812 835 switch (x->type ) {813 switch (x->type.type) { 836 814 case PS_TYPE_F64: 837 815 tmp = psVectorAlloc(x->n, PS_TYPE_F64); … … 880 858 PS_ASSERT_POLY_NON_NULL(poly, NULL); 881 859 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); 883 861 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); 885 863 886 864 psVector *tmp; … … 892 870 } 893 871 894 switch (x->type ) {872 switch (x->type.type) { 895 873 case PS_TYPE_F32: 896 if (y->type != x->type) {874 if (y->type.type != x->type.type) { 897 875 psError(PS_ERR_UNKNOWN, true, "type mismatch in data vectors"); 898 876 return (NULL); … … 908 886 break; 909 887 case PS_TYPE_F64: 910 if (y->type != x->type) {888 if (y->type.type != x->type.type) { 911 889 psError(PS_ERR_UNKNOWN, true, "type mismatch in data vectors"); 912 890 return (NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
