www.pudn.com > spline_c++.rar > spline.h


// spline.h 
#ifndef SPLINE_H 
#define SPLINE_H 
 
#include "math.h" 
 
struct PointInfo{ 
	double x; 
	double yDer2; 
	double y; 
	 
}; 
void GetDerivdowntive2(double down[] ,   //对三角矩阵的下半部分  
		       double upper[],   //对三角矩阵的上半部分  
		       PointInfo *pInfo, //方程右边的常数部分,同时作为导数的输出存放区  
		       int n)  ;         //矩阵的维数 
 
void GenarateData(PointInfo *pLeft, PointInfo *pRight, char *pDes, int pos);  //生成插值数据 
 
void GenarateArray(PointInfo *pBegin,int newLengh, char *pDes, int oldLengh); //按行进行插值 
 
void GenarateMatrix(double upper[], double down[], PointInfo *pInfo , int oldLength); //生成3对角矩阵		     
 
void GenaratePiontInfo(PointInfo *pInfo ,char *pSrc, int oldLength,int newLength); //将原象素信息转化为插值信息 
 
 
#endif