Article View: fj.lang.c
Article #389教えてください ルーチンの高速化
From: leo
Date: Wed, 29 Apr 1998 00:00
Date: Wed, 29 Apr 1998 00:00
25 lines
1193 bytes
1193 bytes
教えてください。
以下のようなプログラムを高速化するにはどうしたらいいでしょうか?
long i,j,n,nn;
double nrm,sigma;
double cosTable[],x[],y[];
for( j=1 ; j<n ; j++ )
{
for(sigma=i=0 ; i<n ; i++) sigma += x[i] * cosTable[(( 2 * i + 1 ) *
j)%nn] ;
y[j] = nrm * sigma;
}
よろしくおねがいします。
--
////////////////////////////////////////////////////////////////
reo nagumo leo@mxb.meshnet.or.jp
南雲玲生
//////////////////////////////////////////////////////////////
Technical Details
Message-ID:
<35467E52.545A@mxb.meshnet.or.jp>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS X-Google-Thread: 106434,5daf7c1d07ca6629,start X-Google-Attributes: gid106434,public From: "leo@mxb.meshnet.or.jp" <leo@mxb.meshnet.or.jp> Subject: 教えてください ルーチンの高速化 Date: 1998/04/29 Message-ID: <35467E52.545A@mxb.meshnet.or.jp> X-Deja-AN: 348457108 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Reply-To: leo@mxb.meshnet.or.jp Content-Type: text/plain; charset=iso-2022-jp X-Complaints-To: news@newssvd02.biglobe.ne.jp X-Trace: meshsv17.tk.mesh.ad.jp 893780031 13812 (None) 133.205.50.223 Organization: BIGLOBE dial-up user Newsgroups: fj.lang.c