mat_mult2.c
Go to the documentation of this file.
1 /* */
2 /* Matrix Multiplication with an entory point */
3 /* */
4 /* Ver.1.0, Jun,30,1988. */
5 /* */
6 
7 #include "arith.h"
8 
9 mat_mult2(n,m,l,amat,ai,aj,bmat,bi,bj,pmat)
10 int n,m,l,ai,aj,bi,bj;
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;
18  for(j=0; j<m; j++){
19  pmat[i][k] += amat[ai+i][aj+j] * bmat[bi+j][bj+k];
20  }
21  }
22  }
23 }
GLfloat n[6][3]
Definition: cube.c:15
long l
Definition: structsize.c:3
mat_mult2(int n, int m, int l, MATRIX amat, int ai, int aj, MATRIX bmat, int bi, int bj, MATRIX pmat)
Definition: mat_mult2.c:9
VECTOR MATRIX[MAX]
Definition: arith.h:27


euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Jun 6 2019 20:00:44