代码搜索结果
找到约 10,000 项符合
LED Matrix 的代码
matrix.h
#ifndef MATRIX_H_H
#define MATRIX_H_H
#define MATRIX_DATE_TYPE int
class CGAonKP;
class SaveMatrixArray
{
long n,m;
MATRIX_DATE_TYPE** pMatrix;
void ReleaseMemory();
public:
SaveMatrixAr
matrix.cpp
#include "Matrix.h"
SaveMatrixArray::SaveMatrixArray()
{
n=0;m=0;
pMatrix=0;
}
SaveMatrixArray::SaveMatrixArray(long N,long M):n(N),m(M)
{
pMatrix=new MATRIX_DATE_TYPE*[n];
for (int i=0;i
matrix.h
// Matrix.h: interface for the CMatrix class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MATRIX_H__F5A742DF_E053_4D49_AF7A_0895F11574B5__INCLUDED_)
matrix.cpp
// Matrix.cpp: implementation of the CMatrix class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "FastRBF.h"
#include "Matrix.h"
#incl
matrix.h
#ifndef MATRIX_H_
#define MATRIX_H_
class Matrix
{
private:
float *array;//存放矩阵元素的指针数组
int nrow,ncol;//矩阵的行列数
public:
//默认构造函数
Matrix():nrow(0),ncol(0),array(0){}
//以给定行列数和元素数组构造矩阵
matrix.cpp
#include "matrix.h"
#include
using namespace std;
Matrix::Matrix(int m,int n, float* a):nrow(m),ncol(n),array(a)
{
}
/*
* 构造维数为n的单位矩阵
*/
Matrix::Matrix(size_t n):nrow(n),nc
matrix.h
////////////////////////////////
// Matrix TCL Lite v1.13
// Copyright (c) 1997-2002 Techsoft Pvt. Ltd. (See License.Txt file.)
//
// Matrix.h: Matrix C++ template class include file
// Web: htt
matrix.cpp
// 图的相邻矩阵表示方法
#include
#include
#include "Graph.h"
#include "Graphm.h"
#define N 5 // 定义图的顶点数
int A[N][N] = {
// V0 V1 V2 V3 V4
/*V0*/ 0, 0, 1, 1, 0,