diff options
author | simon | 2008-08-07 15:00:45 +0000 |
---|---|---|
committer | simon | 2008-08-07 15:00:45 +0000 |
commit | 9633cfcb36ba18c46282c8e8a7e5dd7352212c40 (patch) | |
tree | e766cc4a2d03d979eeba92c0053afa60aa925943 /src/matrixOperations/eyes/deyesa.c | |
parent | c80b732994ec39abd96da72e03fb95dfb6997422 (diff) | |
download | scilab2c-9633cfcb36ba18c46282c8e8a7e5dd7352212c40.tar.gz scilab2c-9633cfcb36ba18c46282c8e8a7e5dd7352212c40.tar.bz2 scilab2c-9633cfcb36ba18c46282c8e8a7e5dd7352212c40.zip |
added matrixExponential and all related sub functions
matrixExponential just work with real Double for the moment
Diffstat (limited to 'src/matrixOperations/eyes/deyesa.c')
-rw-r--r-- | src/matrixOperations/eyes/deyesa.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/matrixOperations/eyes/deyesa.c b/src/matrixOperations/eyes/deyesa.c new file mode 100644 index 00000000..8f45038f --- /dev/null +++ b/src/matrixOperations/eyes/deyesa.c @@ -0,0 +1,23 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Allan SIMON + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + * + */ + +#include "matrixEyes.h" + +void deyesa(double *in, int _iRows, int _iCols) +{ + int i , j ; + + for ( i = 0 ; i < _iRows ; i++ ) + for ( j = 0 ; j <_iCols ; j++ ) + in[i + j * _iRows] = (i==j)?1:0 ; +} + |