Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site sdcsla.UUCP Path: utzoo!watmath!clyde!burl!mgnetp!ihnp4!zehntel!dual!amd70!decwrl!decvax!ittvax!dcdwest!sdcsvax!sdcsla!west From: west@sdcsla.UUCP Newsgroups: net.physics Subject: Re: VMS vs. Unix (programs) Message-ID: <590@sdcsla.UUCP> Date: Tue, 3-Jul-84 00:03:33 EDT Article-I.D.: sdcsla.590 Posted: Tue Jul 3 00:03:33 1984 Date-Received: Sat, 30-Jun-84 03:12:22 EDT References: <360@noao.UUCP> Organization: UC San Diego: Institute for Cognitive Science Lines: 107 To make things a little fairer, I rewrote the C matrix multiplication program to take advantage of C's pointers. Of course, this is something a good ``optimizer'' would do for you, but it isn't that hard to do by hand. Peter Allan's original program: /* Multiply two matrices */ #define N 100 main() { float a[N][N],b[N][N],c[N][N],sum; int i,j,k; /* Ininialise a and b */ for (i=0 ; i