/* tmmul.c CCMATH mathematics library source code. * * Copyright (C) 2000 Daniel A. Atkinson All rights reserved. * This code may be redistributed under the terms of the GNU library * public license (LGPL). ( See the lgpl.license file for details.) * ------------------------------------------------------------------------ */ /* Test: mmul Uses: matprt nrml Input parameter: n -> size square matrices are n by n */ #include "ccmath.h" unsigned int seed=123456789; void main(int na,char **av) { int i,n,m; double *a,*b,*c,*p,*q; if(na!=2){ printf("para: dim\n"); exit(1);} n=atoi(*++av); m=n*n; a=(double *)calloc(3*m,sizeof(double)); b=a+m; c=b+m; setnrml(seed); for(i=0,p=a,q=b; i