945.txt
来自「This complete matlab for neural network」· 文本 代码 · 共 34 行
TXT
34 行
发信人: fervvac (高远), 信区: DataMining
标 题: Re: Help: Transofrom the C code to BASIC code.
发信站: 南京大学小百合站 (Mon Dec 17 13:43:31 2001), 站内信件
If you are going to use that routine in VB, you can simple make a DLL from
the C code and call that DLL from VB. As such, you get the efficiency as
well as energy saving, :-)
【 在 yaomc (白头翁&山东大汉) 的大作中提到: 】
: Please help a friend to transform the C code produced by DISCIPULUS2.0 to
: BASIC code.
: The codes are:
: float DiscCFunction(float v[])
: {
: double f[8];
: double tmp = 0;
: int cflag = 0;
: f[0]=f[1]=f[2]=f[3]=f[4]=f[5]=f[6]=f[7]=0;
: L0: f[0]+=v[2];
: L1: f[1]*=f[0];
: L2: f[0]+=v[1];
: L3: f[1]-=f[0];
: L4: f[0]+=v[2];
: L5: f[0]=sqrt(f[0]);
: L6: f[0]/=v[1];
: L7: tmp=f[1]; f[1]=f[0]; f[0]=tmp; ====?·?÷òa2??÷??′|
: L8: f[0]=-f[0];
: L9: f[1]-=f[0];
: L10: f[0]+=f[0];
: (以下引言省略 ... ...)
--
※ 来源:.南京大学小百合站 bbs.nju.edu.cn.[FROM: 饮水思源BBS]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?