代码搜索结果
找到约 10,000 项符合
LED Matrix 的代码
matrix.h
// Matrix.h: interface for the Matrix class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MATRIX_H__3461DABF_4919_4B31_81EA_AC9397ABBAE1__INCLUDED_)
matrix.inl
// Matrix.inl 矩阵模板类函数(方法)定义
// Ver 1.0.0.0
// 版权所有(C) 何渝, 2002
// 最后修改: 2002.5.31
#ifndef _MATRIX_INL
#define _MATRIX_INL
//矩阵乘法函数
template //最后结
matrix.h
// Matrix.h 矩阵模板类头文件
// Ver 1.0.0.0
// 版权所有(C) 何渝, 2002
// 最后修改: 2002.5.31.
#ifndef _MATRIX_H //避免多次编译
#define _MATRIX_H
#include //模板类valarray的标准头文件
#include //公共头文
matrix.h
#ifndef HEADER_MATRIX
#define HEADER_MATRIX
//template
#include
using namespace std;
class Matrix
{
private :
int nRow ,nCol ;
matrix.cpp
//#include
//using namespace std ;
#include "Matrix.h"
int Matrix::getRow()
{
return this->nRow ;
}
int Matrix::getCol()
{
return this->nCol ;
}
Matrix::Matrix(i
matrix.txt
0.06305545580612634 0.12946809378147953 0.029966184810160695 0.7775102656022335
0.011885412471549799 0.0300291990212079 0.0048390111708851696 0.9532463773363572
0.01289516968093946 0.035797027619048
matrix.h
#ifndef MATRIX_H
#define MATRIX_H
// 定义适合数学运算的实数matrix类,数据将存放在buffer类中
#include
#include
#include
// buffer.h包含实数缓存类buffer的定义
#include "buffer.h"
/
matrix.cpp
#include
#include
#include
#include
// 本程序实现matrix类
// 对matrix类的定义
#include "matrix.h"
matrix::matrix(buffer * b): // 缺省构造函数,产生0行0列空矩阵
rownum(0),co