par.h

来自「GENETIC ALGORITHM FOR NEURAL NETWORKS ON」· C头文件 代码 · 共 42 行

H
42
字号
/* Declaration of Parallel Features */#ifndef PAR_H#define PAR_H	1#include "defs.h"#define MAXPROCS	16char *ParOptStr();char *ParUsage();char ParParamStr[256]; int Procs;	/* no. of processes */int ProcId;	/* process Id */int LocalId;	/* Local Id */int PopGlobal;	/* size of global population */int PopLocal;	/* size of local population */int MaxGen;	/* Maximum no. of generations */errtyp MaxErr;	/* Maximum error for succes */int SeedRand;	/* random seed */int Ntrans;	/* frequency of data transfer */void initNetwork();int handleParOpt(char opt,char* arg);int initPar();void errorexit(char *msg);void send(int proc,void *p,int len);void recv(void *p,int len);int recvfrom(void *p,int len);void setvect(int n,void *p,int len);void sendvect(int proc,int n);void recvvect(int n);int recvvectfrom(int n);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?