diff options
Diffstat (limited to 'src/matrixOperations/fill/zfilla.c')
-rw-r--r-- | src/matrixOperations/fill/zfilla.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/matrixOperations/fill/zfilla.c b/src/matrixOperations/fill/zfilla.c new file mode 100644 index 00000000..a4a8ac9b --- /dev/null +++ b/src/matrixOperations/fill/zfilla.c @@ -0,0 +1,24 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008 - INRIA - Arnaud TORSET + * + * 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 "fill.h" +#include "ones.h" +#include "multiplication.h" + +void zfilla (doubleComplex* in, int rows, int cols, doubleComplex constant){ + int i; + + zonesa(in,rows,cols); + for (i=0;i<rows*cols;i++) in[i]=zmuls(in[i],constant); +} |