primitive.h

来自「普林斯顿开发的快速球面调和变换算法」· C头文件 代码 · 共 39 行

H
39
字号
// primitive.h: interface for the primitive class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_PRIMITIVE_H__CE15A736_A064_4380_BEE6_A3DD10E46868__INCLUDED_)
#define AFX_PRIMITIVE_H__CE15A736_A064_4380_BEE6_A3DD10E46868__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <math.h>
#include <string.h>  /* to declare memcpy */

#ifndef PI
#define PI 3.14159265358979
#endif

class primitive  
{
public:
	void P_eval(int m,double *coeffs, double *eval_args, double *result,double *workspace, int bw);
	void Pmm_L2( int m,double *eval_pts, int n, double *result);
	void EvalPts( int n, double *eval_pts);
	void ArcCosEvalPts(int n,  double *eval_pts);
	void vec_pt_mul(double *data1,double *data2,double *result,int n);
	void vec_mul(double scalar, double *data1, double *result, int n);
	void vec_add(double *data1, double *data2, double *result, int n);
	double L2_ancn(int m, int l);
	double L2_cn_inv(int m, int l);
	double L2_cn(int m, int l);
	double L2_an(int m, int l);
	primitive();
	virtual ~primitive();

};

#endif // !defined(AFX_PRIMITIVE_H__CE15A736_A064_4380_BEE6_A3DD10E46868__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?