📄 cpucomputation.h
字号:
// CPUcomputation.h: interface for the CCPUcomputation class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CPUCOMPUTATION_H__BF01F0B7_35DD_48A2_9FCB_7A4C418D4DCD__INCLUDED_)
#define AFX_CPUCOMPUTATION_H__BF01F0B7_35DD_48A2_9FCB_7A4C418D4DCD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "CommonHW.h"
//////////////////////////////////////////////////////////////////////////////
//// Operations on CPU VS on GPU
//// Latest Date: 2003/11/10
//// Mainly for the computation on CPU
//////////////////////////////////////////////////////////////////////////////
void on_cpu_clVecOp(OperationOnGPUEnum op, float a, float b, float* x, float* y, float* result, int Dim_Vector);
void on_cpu_clMatVec(float* A, float* x, float* result, int Dim_Vector);
float on_cpu_clVecReduce(OperationOnGPUEnum cmb, float* x, int Dim_Vector);
void on_cpu_clMatMat(float* A, float* B, float* result, int Dim_Vector);
float on_cpu_clInnerProduct(float* x, float* y, int Dim_Vector);
//////////////////////////////////////////////////////////////////////////////
///// On CPU Linear Equations Solver
void JacobiSolverOnCPU(float *M, float *x, float *b, int Dim);
void GaussSeidelSolverOnCPU(float *M, float *x, float *b, int Dim);
void SucOverRelaxSolverOnCPU(float *M, float *x, float *b, int Dim);
void SteepestDescentSolverOnCPU(float *M, float *x, float *b, int Dim);
void ConjugateGradientSolverOnCPU(float *M, float *x, float *b, int Dim);
#endif // !defined(AFX_CPUCOMPUTATION_H__BF01F0B7_35DD_48A2_9FCB_7A4C418D4DCD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -