mat_mult.c
Go to the documentation of this file.
1 /* */
2 /* Matrix Multiplication */
3 /* */
4 /* Ver.1.0, Jan.18,1988. */
5 /* */
6 
7 #include "arith.h"
8 
9 mat_mult(n,m,l,amat,bmat,pmat)
10 int n,m,l;
11 MATRIX amat,bmat,pmat;
12 {
13  int i,j,k;
14 
15  for(i=0; i<n; i++){
16  for(k=0; k<l; k++){
17  pmat[i][k]=0.0e0;
18  for(j=0; j<m; j++){
19  pmat[i][k] += amat[i][j] * bmat[j][k];
20  }
21  }
22  }
23 }
GLfloat n[6][3]
Definition: cube.c:15
mat_mult(int n, int m, int l, MATRIX amat, MATRIX bmat, MATRIX pmat)
Definition: mat_mult.c:9
long l
Definition: structsize.c:3
VECTOR MATRIX[MAX]
Definition: arith.h:27


euslisp
Author(s): Toshihiro Matsui
autogenerated on Fri Feb 21 2020 03:20:54