clcrnimatrix.h
来自「在GPU上实现数值模拟技术(线性方程组)的通用架构」· C头文件 代码 · 共 41 行
H
41 行
#pragma once
#include "clunpackedmatrix.h"
class clCrNiMatrix : public clUnpackedMatrix {
public:
clCrNiMatrix(LPDIRECT3DDEVICE9 pd3dDevice, int iSizeX, int iSizeY, float fDeltaT, float fC, float fDeltaX, float fDeltaY);
void setDeltaT(float fDeltaT);
void setC(float fC);
void setDeltaX(float fDeltaX);
void setDeltaY(float fDeltaY);
float getDeltaT();
float getC();
float getDeltaX();
float getDeltaY();
static void preOrder(int iSizeX, int iSizeY, int iCount) {
clUnpackedVector::preOrder(iSizeX, iSizeY,5*iCount,true);
}
protected:
float m_fDeltaT;
float m_fC;
float m_fDeltaX;
float m_fDeltaY;
// block the other constructors
clCrNiMatrix(LPDIRECT3DDEVICE9 pd3dDevice, int iSize) {
UNREFERENCED_PARAMETER( pd3dDevice );
UNREFERENCED_PARAMETER( iSize );
};
clCrNiMatrix() {};
void fillRows();
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?