diff options
author | musil <tmusil@users.sourceforge.net> | 2005-06-16 12:43:07 +0000 |
---|---|---|
committer | musil <tmusil@users.sourceforge.net> | 2005-06-16 12:43:07 +0000 |
commit | bd51137dc8db0a3959d93b34c1e00980ec12e324 (patch) | |
tree | e8b75aae75cdabc2f3d485bea660bf13ce5140e3 /src/mtx_mul.c | |
parent | 54b51701c9a4731ff6826960207275f7c5f5585c (diff) |
MSVCC makefile fixed some files
svn path=/trunk/externals/iem/iemmatrix/; revision=3185
Diffstat (limited to 'src/mtx_mul.c')
-rw-r--r-- | src/mtx_mul.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mtx_mul.c b/src/mtx_mul.c index 8272d53..e00af08 100644 --- a/src/mtx_mul.c +++ b/src/mtx_mul.c @@ -25,9 +25,11 @@ t_matrixfloat*mtx_doMultiply(int rowA, t_matrixfloat*A, int colArowB, t_matrixfloat*B, int colB){ t_matrixfloat*result=0; + int r, c, n; + if(!A || !B || !rowA || !colArowB || !colB)return 0; result=(t_matrixfloat*)getbytes(sizeof(t_matrixfloat)*rowA*colB); - int r, c, n; + for(r=0; r<rowA; r++){ for(c=0; c<colB; c++){ t_matrixfloat sum=0.f; |