www.pudn.com > 医学算法.rar > matrix
.TH matrix 3 "Ultrasonics Laboratory" .SH NAME matrix math routines .SH SYNOPSIS inv(a,b) - invert a three by three matrix .br mult(a,b,c,n,m,l) - multiply two matrixes .br float a[3][3],b[3][3],c[3][3]; .br long n, m, l; .SH DESCRIPTION These two routines are simple math routines that can be called from either C or Fortran. The .B inv routine simply calculates the inverse of the three by three matrix .B a. The result is left in the array .B b. .PP The .B mult routine will multiply two matrixes of arbitrary size. The files .B a and .B b are the input files of size (n x m) and (m x l) respectfully. The result is placed into the array .B c. This result will be a (n x l) array. .SH BUGS The inversion routine does not check for a singular matrix.