代码搜索结果
找到约 10,000 项符合
LED Matrix 的代码
---matrix.nlogo
breeds [neo agenten]
agenten-own [ich_sehe_neo]
;---------------------------------------------------------------
to setup
ca
ask patches [set pcolor grey]
create-agenten anzahl_agenten
ask
matrix.h
#ifndef _MATRIX_H
#define _MATRIX_H
#include "defines.h"
namespace annie
{
/** A class for 2-dimensional matrices.
* This probably isn't the most efficient way to do matrix operations,
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 Matrix_
#define Matrix_
#include "xcept.h"
template
class Matrix {
friend ostream& operator
matrix.cpp
// test matrix class
#include
#include "matrix.h"
void main(void)
{
try {
Matrix X(3,2), Y, Z;
int i, j;
for (i = 1; i
matrix.out
X(3,1) = 7
X is
3 4
5 6
7 8
Y is
3 4
5 6
7 8
X incremented by 2 is
5 6
7 8
9 10
Y + X is
8 10
12 14
16 18
-(Y + X) is
-8 -10
-12 -14