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 }
l
long l
Definition: structsize.c:3
arith.h
mat_mult
mat_mult(int n, int m, int l, MATRIX amat, MATRIX bmat, MATRIX pmat)
Definition: mat_mult.c:9
MATRIX
VECTOR MATRIX[MAX]
Definition: arith.h:27
n
GLfloat n[6][3]
Definition: cube.c:15


euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Jun 15 2023 02:06:43