Changeset 6484 for trunk/psLib/src/math/psSpline.c
- Timestamp:
- Feb 24, 2006, 1:43:16 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psSpline.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psSpline.c
r6437 r6484 1 1 /** @file psSpline.c 2 2 * 3 * @brief Contains basic spline allocation, deallocation, fitting, 3 * @brief Contains basic spline allocation, deallocation, fitting, 4 4 * and evaluation routines. 5 5 * 6 6 * This file contains the routines that allocate, free, and evaluate splines. 7 7 * 8 * @version $Revision: 1.13 6$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-02- 17 00:56:48$8 * @version $Revision: 1.137 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-02-24 23:43:15 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 239 239 for (psS32 i = 0 ; i < x->n ; i++) { 240 240 spline->knots->data.F32[i] = x->data.F32[i]; 241 spline->knots->n++; 241 242 } 242 243 } else if (x->type.type == PS_TYPE_F64) { 243 244 for (psS32 i = 0 ; i < x->n ; i++) { 244 245 spline->knots->data.F32[i] = (psF32) x->data.F64[i]; 246 spline->knots->n++; 245 247 } 246 248 } … … 248 250 for (psS32 i = 0 ; i < y->n ; i++) { 249 251 spline->knots->data.F32[i] = (psF32) i; 252 spline->knots->n++; 250 253 } 251 254 } … … 412 415 for (psS32 i=0;i<x->n;i++) { 413 416 tmpVector->data.F32[i] = psSpline1DEval(spline, x->data.F32[i]); 417 tmpVector->n++; 414 418 } 415 419 } else if (x->type.type == PS_TYPE_F64) { 416 420 for (psS32 i=0;i<x->n;i++) { 417 421 tmpVector->data.F32[i] = psSpline1DEval(spline, (psF32) x->data.F64[i]); 422 tmpVector->n++; 418 423 } 419 424 }
Note:
See TracChangeset
for help on using the changeset viewer.
