diff options
author | jofret | 2008-06-16 05:10:50 +0000 |
---|---|---|
committer | jofret | 2008-06-16 05:10:50 +0000 |
commit | 623c2279ef1e2549d3088be3d9b2a494c258f94e (patch) | |
tree | 08cf554a52e2d8f29c85509b9e1631b375be0676 /src/matrixOperations/matrixMultiplication.h | |
parent | 1edf7d8f0f449fe1486c60c8f37c77131d44d67e (diff) | |
download | scilab2c-623c2279ef1e2549d3088be3d9b2a494c258f94e.tar.gz scilab2c-623c2279ef1e2549d3088be3d9b2a494c258f94e.tar.bz2 scilab2c-623c2279ef1e2549d3088be3d9b2a494c258f94e.zip |
First step of matrix multiplication
Diffstat (limited to 'src/matrixOperations/matrixMultiplication.h')
-rw-r--r-- | src/matrixOperations/matrixMultiplication.h | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/src/matrixOperations/matrixMultiplication.h b/src/matrixOperations/matrixMultiplication.h index e69de29b..413f8d96 100644 --- a/src/matrixOperations/matrixMultiplication.h +++ b/src/matrixOperations/matrixMultiplication.h @@ -0,0 +1,82 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET + * + * 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 + * + */ + +#ifndef __MATRIXMULTIPLICATION_H__ +#define __MATRIXMULTIPLICATION_H__ + +#include "floatComplex.h" +#include "doubleComplex.h" + +/* +** +** WARNING WE ASSUME MATRIXES TO BE CONSCISTENT +** columns1 = lines2; +** +*/ + +/* +** \brief Compute a multiplication for floats matrixes. +** \param in1 : input matrix. +** \param lines1 : lines of in1 matrix. +** \param columns1 : columns of in1 matrix. +** \param in2 : input arry. +** \param lines2 : lines of in2 matrix. +** \param columns2 : columns of in2 matrix. +** \param out : Matrix that contains the multiplication in1 * in2. +*/ +void smulma(float *in1, int lines1, int columns1, + float *in2, int lines2, int columns2, + float *out); + +/* +** \brief Compute a multiplication for doubles matrixes. +** \param in1 : input matrix. +** \param lines1 : lines of in1 matrix. +** \param columns1 : columns of in1 matrix. +** \param in2 : input arry. +** \param lines2 : lines of in2 matrix. +** \param columns2 : columns of in2 matrix. +** \param out : Matrix that contains the multiplication in1 * in2. +*/ +void dmulma(double *in1, int lines1, int columns1, + double *in2, int lines2, int columns2, + double *out); + +/* +** \brief Compute a multiplication for floats complex matrixes. +** \param in1 : input matrix. +** \param lines1 : lines of in1 matrix. +** \param columns1 : columns of in1 matrix. +** \param in2 : input arry. +** \param lines2 : lines of in2 matrix. +** \param columns2 : columns of in2 matrix. +** \param out : Matrix that contains the multiplication in1 * in2. +*/ +void cmulma(floatComplex *in1, int lines1, int columns1, + floatComplex *in2, int lines2, int columns2, + floatComplex *out); + +/* +** \brief Compute a multiplication for doubles matrixes. +** \param in1 : input matrix. +** \param lines1 : lines of in1 matrix. +** \param columns1 : columns of in1 matrix. +** \param in2 : input arry. +** \param lines2 : lines of in2 matrix. +** \param columns2 : columns of in2 matrix. +** \param out : Matrix that contains the multiplication in1 * in2. +*/ +void zmulma(doubleComplex *in1, int lines1, int columns1, + doubleComplex *in2, int lines2, int columns2, + doubleComplex *out); + +#endif /* !__MATRIXMULTIPLICATION_H__ */ |