代码搜索结果
找到约 10,000 项符合
LED Matrix 的代码
matrix.cpp
#include
#include
#include
#include
// 本程序实现matrix类
// 对matrix类的定义
#include "matrix.h"
matrix::matrix(buffer * b): // 缺省构造函数,产生0行0列空矩阵
rownum(0),co
matrix.h
#ifndef __MATRIX_H__
#define __MATRIX_H__
#include
typedef double T;
class Matrix
{
//private:
T** element;
int rows;
int cols;
void alloc(void);
void release(void);
matrix.cpp
#include "matrix.h"
#include
#include
#include
#include
#define AS_ZERO 0.0001
Matrix::Matrix(int r, int c)
{
rows = r;
cols = c;
alloc()
matrix.h
//////////////////////////////////////////////////////////////////////////
//Matrix.h
//该文件中的所有函数均为全局函数
//函数的功能主要是进行矩阵的基本运算
//
////////////////////////////////////////////////////////////////////
matrix.cpp
//////////////////////////////////////////////////////////////////////////
////Matrix.ccp
////
////源文件中各函数的作用主要是进行矩阵的基本运算
////
//// MultMatrix() 矩阵相乘
//// TranMatrix() 矩阵转置
//// InverMatrix()
matrix.h
// Matrix.h: interface for the CMatrix class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MATRIX_H__1D4A689F_CE10_42D0_95E8_9EC16E68ED32__INCLUDED_)
matrix.cpp
// Matrix.cpp: implementation of the CMatrix class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Matrix.h"
#include
matrix.h
#ifndef Matrix_
#define Matrix_
#include "xcept.h"
template
class Matrix {
friend ostream& operator