summaryrefslogtreecommitdiff
path: root/2.3-1/src
diff options
context:
space:
mode:
authorsiddhu89902016-06-06 09:18:33 +0530
committersiddhu89902016-06-06 09:18:33 +0530
commitf08e63e652a564b3f805b69c05948e497c7b28f6 (patch)
treed8f4bcc4dc02c668ec38745eaf867dd365fd9992 /2.3-1/src
parent49003250e69e4e500742614888e47db789bbe451 (diff)
downloadScilab2C-f08e63e652a564b3f805b69c05948e497c7b28f6.tar.gz
Scilab2C-f08e63e652a564b3f805b69c05948e497c7b28f6.tar.bz2
Scilab2C-f08e63e652a564b3f805b69c05948e497c7b28f6.zip
File handling functions added
Diffstat (limited to '2.3-1/src')
-rw-r--r--2.3-1/src/c/Files/includes/files.h47
-rw-r--r--2.3-1/src/c/Files/interfaces/int_files.h58
-rw-r--r--2.3-1/src/c/Files/mclose/mclose.c22
-rw-r--r--2.3-1/src/c/Files/mopen/mopen.c24
-rw-r--r--2.3-1/src/c/Files/mput/dmputa.c33
-rw-r--r--2.3-1/src/c/Files/mput/dmputs.c27
-rw-r--r--2.3-1/src/c/Files/mput/i16mputa.c33
-rw-r--r--2.3-1/src/c/Files/mput/i16mputs.c26
-rw-r--r--2.3-1/src/c/Files/mput/i8mputa.c33
-rw-r--r--2.3-1/src/c/Files/mput/i8mputs.c26
-rw-r--r--2.3-1/src/c/Files/mput/smputa.c33
-rw-r--r--2.3-1/src/c/Files/mput/smputs.c26
-rw-r--r--2.3-1/src/c/Files/mput/u16mputa.c33
-rw-r--r--2.3-1/src/c/Files/mput/u16mputs.c26
-rw-r--r--2.3-1/src/c/Files/mput/u8mputa.c33
-rw-r--r--2.3-1/src/c/Files/mput/u8mputs.c26
-rw-r--r--2.3-1/src/c/differential_calculus/includes/ode.h6
-rw-r--r--2.3-1/src/c/differential_calculus/interfaces/int_ode.h31
-rw-r--r--2.3-1/src/c/differential_calculus/ode/dodea.c32
-rw-r--r--2.3-1/src/c/differential_calculus/ode/dodes.c44
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalIns.c48
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c45
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c54
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h14
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralUtil.h14
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h16
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralUtil.h16
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/libraries/libgsl.abin0 -> 11823192 bytes
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMicros.c51
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMillis.c51
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/dcolumncumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/dcumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/drowcumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/i16columncumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/i16cumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/i16rowcumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/i8columncumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/i8cumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/i8rowcumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/scolumncumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/scumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/srowcumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/u16columncumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/u16cumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/u16rowcumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/u8columncumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/u8cumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumprod/u8rowcumproda.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/dcolumncumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/dcumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/drowcumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/i16columncumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/i16cumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/i16rowcumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/i8columncumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/i8cumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/i8rowcumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/scolumncumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/scumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/srowcumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/u16columncumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/u16cumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/u16rowcumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/u8columncumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/u8cumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/cumsum/u8rowcumsuma.c23
-rw-r--r--2.3-1/src/c/matrixOperations/includes/cumprod.h27
-rw-r--r--2.3-1/src/c/matrixOperations/includes/cumsum.h27
-rw-r--r--2.3-1/src/c/matrixOperations/includes/flipdim.h27
-rw-r--r--2.3-1/src/c/matrixOperations/includes/kron.h25
-rw-r--r--2.3-1/src/c/matrixOperations/includes/tril.h25
-rw-r--r--2.3-1/src/c/matrixOperations/includes/triu.h25
-rw-r--r--2.3-1/src/c/matrixOperations/interfaces/int_cumprod.h26
-rw-r--r--2.3-1/src/c/matrixOperations/interfaces/int_cumsum.h26
-rw-r--r--2.3-1/src/c/matrixOperations/interfaces/int_flipdim.h26
-rw-r--r--2.3-1/src/c/matrixOperations/interfaces/int_kron.h26
-rw-r--r--2.3-1/src/c/matrixOperations/interfaces/int_permute.h20
-rw-r--r--2.3-1/src/c/matrixOperations/interfaces/int_tril.h26
-rw-r--r--2.3-1/src/c/matrixOperations/interfaces/int_triu.h26
-rw-r--r--2.3-1/src/c/matrixOperations/kron/dkrona.c23
-rw-r--r--2.3-1/src/c/matrixOperations/kron/skrona.c23
-rw-r--r--2.3-1/src/c/matrixOperations/tril/dtrila.c24
-rw-r--r--2.3-1/src/c/matrixOperations/tril/i16trila.c23
-rw-r--r--2.3-1/src/c/matrixOperations/tril/i8trila.c23
-rw-r--r--2.3-1/src/c/matrixOperations/tril/strila.c23
-rw-r--r--2.3-1/src/c/matrixOperations/tril/u16trila.c24
-rw-r--r--2.3-1/src/c/matrixOperations/tril/u8trila.c23
-rw-r--r--2.3-1/src/c/matrixOperations/triu/dtriua.c24
-rw-r--r--2.3-1/src/c/matrixOperations/triu/i16triua.c23
-rw-r--r--2.3-1/src/c/matrixOperations/triu/i8triua.c23
-rw-r--r--2.3-1/src/c/matrixOperations/triu/striua.c23
-rw-r--r--2.3-1/src/c/matrixOperations/triu/u16triua.c24
-rw-r--r--2.3-1/src/c/matrixOperations/triu/u8triua.c24
93 files changed, 1557 insertions, 858 deletions
diff --git a/2.3-1/src/c/Files/includes/files.h b/2.3-1/src/c/Files/includes/files.h
new file mode 100644
index 00000000..4491e7e6
--- /dev/null
+++ b/2.3-1/src/c/Files/includes/files.h
@@ -0,0 +1,47 @@
+ /* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+ */
+#ifndef __FILES_H__
+#define __FILES_H__
+
+#include <stdio.h>
+#include "types.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+FILE *mopen (char *path, char *mode);
+
+int mclose(FILE *fptr);
+
+/*For writing single/scalar values*/
+int dmputs (FILE *fptr, double data);
+int smputs (FILE *fptr, float data);
+int u8mputs (FILE *fptr, uint8 data);
+int i8mputs (FILE *fptr, int8 data);
+int u16mputs (FILE *fptr, uint16 data);
+int i16mputs (FILE *fptr, int16 data);
+
+/*For writing array/matrix values*/
+int dmputa (FILE *fptr, double *data, int row, int col);
+int smputa (FILE *fptr, float *data, int row, int col);
+int u8mputa (FILE *fptr, uint8 *data, int row, int col);
+int i8mputa (FILE *fptr, int8 *data, int row, int col);
+int u16mputa (FILE *fptr, uint16 *data, int row, int col);
+int i16mputa (FILE *fptr, int16 *data, int row, int col);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /*__FILES_H__*/
diff --git a/2.3-1/src/c/Files/interfaces/int_files.h b/2.3-1/src/c/Files/interfaces/int_files.h
new file mode 100644
index 00000000..862754fc
--- /dev/null
+++ b/2.3-1/src/c/Files/interfaces/int_files.h
@@ -0,0 +1,58 @@
+ /* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+ */
+#ifndef __INT_FILES_H__
+#define __INT_FILES_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define g2g2mopenf0(path, pathsize, mode, modesize) mopen(path, mode)
+
+#define f0mclosei0(fptr) mclose(fptr)
+
+#define d0g2f0mputi0(data, format, formatsize, fptr) dmputs(fptr, data)
+
+#define s0g2f0mputi0(data, format, formatsize, fptr) smputs(fptr, data)
+
+#define u80g2f0mputi0(data, format, formatsize, fptr) u8mputs(fptr, data)
+
+#define i80g2f0mputi0(data, format, formatsize, fptr) i8mputs(fptr, data)
+
+#define u160g2f0mputi0(data, format, formatsize, fptr) u16mputs(fptr, data)
+
+#define i160g2f0mputi0(data, format, formatsize, fptr) i16mputs(fptr, data)
+
+#define d2g2f0mputi0(data, size1, format, formatsize, fptr) \
+ dmputa(fptr, data, size1[0], size1[1])
+
+#define s2g2f0mputi0(data, size1, format, formatsize, fptr) \
+ smputa(fptr, data, size1[0], size1[1])
+
+#define u82g2f0mputi0(data, size1, format, formatsize, fptr) \
+ u8mputa(fptr, data, size1[0], size1[1])
+
+#define i82g2f0mputi0(data, size1, format, formatsize, fptr) \
+ i8mputa(fptr, data, size1[0], size1[1])
+
+#define u162g2f0mputi0(data, size1, format, formatsize, fptr) \
+ u16mputa(fptr, data, size1[0], size1[1])
+
+#define i162g2f0mputi0(data, size1, format, formatsize, fptr) \
+ i16mputa(fptr, data, size1[0], size1[1])
+
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /*__INT_FILES_H__*/
diff --git a/2.3-1/src/c/Files/mclose/mclose.c b/2.3-1/src/c/Files/mclose/mclose.c
new file mode 100644
index 00000000..5e689358
--- /dev/null
+++ b/2.3-1/src/c/Files/mclose/mclose.c
@@ -0,0 +1,22 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function to close file pointed by input file handle*/
+
+#include "files.h"
+
+int mclose(FILE *fptr)
+{
+ int res;
+ res = fclose(fptr);
+ return res;
+} \ No newline at end of file
diff --git a/2.3-1/src/c/Files/mopen/mopen.c b/2.3-1/src/c/Files/mopen/mopen.c
new file mode 100644
index 00000000..1cb1c880
--- /dev/null
+++ b/2.3-1/src/c/Files/mopen/mopen.c
@@ -0,0 +1,24 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function to open a file and obtain handle for the same */
+
+#include "files.h"
+
+FILE *mopen (char *path, char *mode)
+{
+ FILE *fptr;
+
+ fptr = fopen(path, mode);
+
+ return fptr;
+} \ No newline at end of file
diff --git a/2.3-1/src/c/Files/mput/dmputa.c b/2.3-1/src/c/Files/mput/dmputa.c
new file mode 100644
index 00000000..9cb6482b
--- /dev/null
+++ b/2.3-1/src/c/Files/mput/dmputa.c
@@ -0,0 +1,33 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function ot write 'double' array/matrix in given file */
+
+#include "files.h"
+
+int dmputa (FILE *fptr, double *data, int row, int col)
+{
+ int res = 0, row_ctr, col_ctr;
+
+ if(fptr != NULL)
+ {
+ for(row_ctr = 0; row_ctr < row; row_ctr++)
+ {
+ for(col_ctr = 0; col_ctr < col; col_ctr++)
+ {
+ res += fprintf(fptr, "%f ", data[row*col_ctr+row_ctr]);
+ }
+ fprintf(fptr, "\n");
+ }
+ }
+ return res;
+} \ No newline at end of file
diff --git a/2.3-1/src/c/Files/mput/dmputs.c b/2.3-1/src/c/Files/mput/dmputs.c
new file mode 100644
index 00000000..42780059
--- /dev/null
+++ b/2.3-1/src/c/Files/mput/dmputs.c
@@ -0,0 +1,27 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function ot write 'double' scalar in given file */
+
+#include <stdio.h>
+
+int dmputs (FILE *fptr, double data)
+{
+ int res;
+
+
+ if(fptr != NULL)
+ {
+ res = fprintf(fptr, "%f", data);
+ }
+ return res;
+} \ No newline at end of file
diff --git a/2.3-1/src/c/Files/mput/i16mputa.c b/2.3-1/src/c/Files/mput/i16mputa.c
new file mode 100644
index 00000000..daa07bf8
--- /dev/null
+++ b/2.3-1/src/c/Files/mput/i16mputa.c
@@ -0,0 +1,33 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function ot write 'int16' array/matrix in given file */
+
+#include "files.h"
+
+int i16mputa (FILE *fptr, int16 *data, int row, int col)
+{
+ int res = 0, row_ctr, col_ctr;
+
+ if(fptr != NULL)
+ {
+ for(row_ctr = 0; row_ctr < row; row_ctr++)
+ {
+ for(col_ctr = 0; col_ctr < col; col_ctr++)
+ {
+ res += fprintf(fptr, "%d ", data[row*col_ctr+row_ctr]);
+ }
+ fprintf(fptr, "\n");
+ }
+ }
+ return res;
+} \ No newline at end of file
diff --git a/2.3-1/src/c/Files/mput/i16mputs.c b/2.3-1/src/c/Files/mput/i16mputs.c
new file mode 100644
index 00000000..43194f1f
--- /dev/null
+++ b/2.3-1/src/c/Files/mput/i16mputs.c
@@ -0,0 +1,26 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function ot write 'int16' scalar in given file */
+
+#include "files.h"
+
+int i16mputs (FILE *fptr, int16 data)
+{
+ int res;
+
+ if(fptr != NULL)
+ {
+ res = fprintf(fptr, "%d\n", data);
+ }
+ return res;
+} \ No newline at end of file
diff --git a/2.3-1/src/c/Files/mput/i8mputa.c b/2.3-1/src/c/Files/mput/i8mputa.c
new file mode 100644
index 00000000..50da3989
--- /dev/null
+++ b/2.3-1/src/c/Files/mput/i8mputa.c
@@ -0,0 +1,33 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function ot write 'int8' array/matrix in given file */
+
+#include "files.h"
+
+int i8mputa (FILE *fptr, int8 *data, int row, int col)
+{
+ int res = 0, row_ctr, col_ctr;
+
+ if(fptr != NULL)
+ {
+ for(row_ctr = 0; row_ctr < row; row_ctr++)
+ {
+ for(col_ctr = 0; col_ctr < col; col_ctr++)
+ {
+ res += fprintf(fptr, "%d ", data[row*col_ctr+row_ctr]);
+ }
+ fprintf(fptr, "\n");
+ }
+ }
+ return res;
+} \ No newline at end of file
diff --git a/2.3-1/src/c/Files/mput/i8mputs.c b/2.3-1/src/c/Files/mput/i8mputs.c
new file mode 100644
index 00000000..1884bf2f
--- /dev/null
+++ b/2.3-1/src/c/Files/mput/i8mputs.c
@@ -0,0 +1,26 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function ot write 'int8' scalar in given file */
+
+#include "files.h"
+
+int i8mputs (FILE *fptr, int8 data)
+{
+ int res;
+
+ if(fptr != NULL)
+ {
+ res = fprintf(fptr, "%d\n", data);
+ }
+ return res;
+} \ No newline at end of file
diff --git a/2.3-1/src/c/Files/mput/smputa.c b/2.3-1/src/c/Files/mput/smputa.c
new file mode 100644
index 00000000..03098a78
--- /dev/null
+++ b/2.3-1/src/c/Files/mput/smputa.c
@@ -0,0 +1,33 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function ot write 'float' array/matrix in given file */
+
+#include "files.h"
+
+int smputa (FILE *fptr, float *data, int row, int col)
+{
+ int res = 0, row_ctr, col_ctr;
+
+ if(fptr != NULL)
+ {
+ for(row_ctr = 0; row_ctr < row; row_ctr++)
+ {
+ for(col_ctr = 0; col_ctr < col; col_ctr++)
+ {
+ res += fprintf(fptr, "%f ", data[row*col_ctr+row_ctr]);
+ }
+ fprintf(fptr, "\n");
+ }
+ }
+ return res;
+} \ No newline at end of file
diff --git a/2.3-1/src/c/Files/mput/smputs.c b/2.3-1/src/c/Files/mput/smputs.c
new file mode 100644
index 00000000..10eeb7b5
--- /dev/null
+++ b/2.3-1/src/c/Files/mput/smputs.c
@@ -0,0 +1,26 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function ot write 'float' scalar in given file */
+
+#include "files.h"
+
+int smputs (FILE *fptr, float data)
+{
+ int res;
+
+ if(fptr != NULL)
+ {
+ res = fprintf(fptr, "%f\n", data);
+ }
+ return res;
+} \ No newline at end of file
diff --git a/2.3-1/src/c/Files/mput/u16mputa.c b/2.3-1/src/c/Files/mput/u16mputa.c
new file mode 100644
index 00000000..e2d2d8fe
--- /dev/null
+++ b/2.3-1/src/c/Files/mput/u16mputa.c
@@ -0,0 +1,33 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function ot write 'uint16' array/matrix in given file */
+
+#include "files.h"
+
+int u16mputa (FILE *fptr, uint16 *data, int row, int col)
+{
+ int res = 0, row_ctr, col_ctr;
+
+ if(fptr != NULL)
+ {
+ for(row_ctr = 0; row_ctr < row; row_ctr++)
+ {
+ for(col_ctr = 0; col_ctr < col; col_ctr++)
+ {
+ res += fprintf(fptr, "%d ", data[row*col_ctr+row_ctr]);
+ }
+ fprintf(fptr, "\n");
+ }
+ }
+ return res;
+} \ No newline at end of file
diff --git a/2.3-1/src/c/Files/mput/u16mputs.c b/2.3-1/src/c/Files/mput/u16mputs.c
new file mode 100644
index 00000000..46b95221
--- /dev/null
+++ b/2.3-1/src/c/Files/mput/u16mputs.c
@@ -0,0 +1,26 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function ot write 'uint16' scalar in given file */
+
+#include "files.h"
+
+int u16mputs (FILE *fptr, uint16 data)
+{
+ int res;
+
+ if(fptr != NULL)
+ {
+ res = fprintf(fptr, "%d\n", data);
+ }
+ return res;
+} \ No newline at end of file
diff --git a/2.3-1/src/c/Files/mput/u8mputa.c b/2.3-1/src/c/Files/mput/u8mputa.c
new file mode 100644
index 00000000..d2baee16
--- /dev/null
+++ b/2.3-1/src/c/Files/mput/u8mputa.c
@@ -0,0 +1,33 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function ot write 'uint8' array/matrix in given file */
+
+#include "files.h"
+
+int u8mputa (FILE *fptr, uint8 *data, int row, int col)
+{
+ int res = 0, row_ctr, col_ctr;
+
+ if(fptr != NULL)
+ {
+ for(row_ctr = 0; row_ctr < row; row_ctr++)
+ {
+ for(col_ctr = 0; col_ctr < col; col_ctr++)
+ {
+ res += fprintf(fptr, "%d ", data[row*col_ctr+row_ctr]);
+ }
+ fprintf(fptr, "\n");
+ }
+ }
+ return res;
+} \ No newline at end of file
diff --git a/2.3-1/src/c/Files/mput/u8mputs.c b/2.3-1/src/c/Files/mput/u8mputs.c
new file mode 100644
index 00000000..a53179e9
--- /dev/null
+++ b/2.3-1/src/c/Files/mput/u8mputs.c
@@ -0,0 +1,26 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function ot write 'uint8' scalar in given file */
+
+#include "files.h"
+
+int u8mputs (FILE *fptr, uint8 data)
+{
+ int res;
+
+ if(fptr != NULL)
+ {
+ res = fprintf(fptr, "%d\n", data);
+ }
+ return res;
+} \ No newline at end of file
diff --git a/2.3-1/src/c/differential_calculus/includes/ode.h b/2.3-1/src/c/differential_calculus/includes/ode.h
index 0a870201..79962434 100644
--- a/2.3-1/src/c/differential_calculus/includes/ode.h
+++ b/2.3-1/src/c/differential_calculus/includes/ode.h
@@ -14,11 +14,11 @@
#define __ODE_H__
double dodes(double initial_value, double start_time, double end_time, \
- char *ode_function, double nequs, double eps_abs, double eps_rel, \
- double step_size);
+ int (*ode_function), char *solver_type, double nequs, double eps_abs, double eps_rel, \
+ double step_size, int *params);
void dodea(double *initial_value, double start_time, double end_time, \
- char *ode_function, double nequs, double eps_abs, double eps_rel, \
+ int (*ode_function), char *solver_type, double nequs, double eps_abs, double eps_rel, \
double step_size, int *params, double *out);
#endif /*__ODE_H__*/ \ No newline at end of file
diff --git a/2.3-1/src/c/differential_calculus/interfaces/int_ode.h b/2.3-1/src/c/differential_calculus/interfaces/int_ode.h
index 1cb64497..28f43999 100644
--- a/2.3-1/src/c/differential_calculus/interfaces/int_ode.h
+++ b/2.3-1/src/c/differential_calculus/interfaces/int_ode.h
@@ -17,11 +17,34 @@
extern "C" {
#endif
-#define d0d0d0g2oded0(in1, in2, in3, in4) dodes(in1, in2, in3, in4, 1, 1.0e-2,\
- 1.0e-2, 1.0e-6)
+#define d0d0d0fn0oded0(in1, in2, in3, func_name) dodes(in1, in2, in3, \
+ func_name, "rkf",1, 1.0e-2, 1.0e-2, 1.0e-6, NULL)
-#define d2d0d0f0oded2(in1, size1, in2, in3, func_name, out) dodea(in1, in2, in3, func_name, \
- size1[1], 1.0e-2, 1.0e-2, 1.0e-6, size1, out)
+#define d2d0d0fn0oded2(in1, size1, in2, in3, func_name, out) dodea(in1, \
+ in2, in3, func_name, "rkf",size1[1], 1.0e-2, 1.0e-2, \
+ 1.0e-6, size1, out)
+
+#define d0d0d2fn0oded2(in1, in2, in3, size3, func_name, out) dodea(in1, in2, \
+ in3, func_name, "rkf", 1, 1.0e-2, 1.0e-2, 1.0e-6, size3, out)
+
+#define d2d0d2fn0oded2(in1, size1, in2, in3, size3, func_name, out) dodea(in1, \
+ in2, in3, func_name, "rkf",size1[1], 1.0e-2, 1.0e-2, \
+ 1.0e-6, size1, out)
+
+#define g2d0d0d0fn0oded0(solvertype, typesize, in1, in2, in3, func_name) dodes(in1, in2, in3, \
+ func_name, solvertype, 1, 1.0e-2, 1.0e-2, 1.0e-6, NULL)
+
+#define g2d2d0d0fn0oded2(solvertype, typesize, in1, size1, in2, in3, func_name, out) \
+ dodea(in1, in2, in3, func_name, solvertype, size1[1], \
+ 1.0e-2, 1.0e-2, 1.0e-6, size1, out)
+
+#define g2d0d0d2fn0oded2(solvertype, typesize, in1, in2, in3, size3, func_name, out) \
+ dodea(in1, in2, in3, func_name, solvertype,1, 1.0e-2, 1.0e-2, \
+ 1.0e-6, size3, out)
+
+#define g2d2d0d2fn0oded2(solvertype, typesize, in1, size1, in2, in3, size3, func_name, out) dodea(in1, \
+ in2, in3, func_name, solvertype, size1[1], 1.0e-2, 1.0e-2, \
+ 1.0e-6, size1, out)
#ifdef __cplusplus
} /* extern "C" */
diff --git a/2.3-1/src/c/differential_calculus/ode/dodea.c b/2.3-1/src/c/differential_calculus/ode/dodea.c
index ff3cbdec..1cb07fab 100644
--- a/2.3-1/src/c/differential_calculus/ode/dodea.c
+++ b/2.3-1/src/c/differential_calculus/ode/dodea.c
@@ -10,7 +10,7 @@
Email: toolbox@scilab.in
*/
-//Function for solving ODEs using GSL library
+/*Function for solving ODEs using GSL library*/
#include "ode.h"
#include "types.h"
@@ -20,21 +20,39 @@
void dodea(double *initial_value, double start_time, double end_time, \
- char *ode_function, double nequs, double eps_abs, double eps_rel, \
- double step_size, int *params, double *out)
+ int (*ode_function), char *solver_type, double nequs, double eps_abs, \
+ double eps_rel, double step_size, int *params, double *out)
{
double t = start_time;
- //Initialise output to initial state
+ gsl_odeiv2_step_type *step_type;
+
+ /*Initialise output to initial state*/
int counter = 0;
for (counter = 0; counter<nequs;counter++)
{
out[counter] = initial_value[counter];
}
- //Setup ODE related parameters
- gsl_odeiv2_system sys = {ode_function, NULL, 2, params};
+ /*Setup ODE related parameters*/
+ gsl_odeiv2_system sys = {ode_function, NULL, nequs, params};
- gsl_odeiv2_step *s = gsl_odeiv2_step_alloc (gsl_odeiv2_step_rkf45, nequs);
+ /*Select step solver*/
+ if (solver_type == "adams")
+ step_type = gsl_odeiv2_step_msadams;
+ if (solver_type == "stiff")
+ step_type = gsl_odeiv2_step_msbdf;
+ if (solver_type == "rk")
+ step_type = gsl_odeiv2_step_rk4;
+ if (solver_type == "rkf")
+ step_type = gsl_odeiv2_step_rkf45;
+ if (solver_type == "root")
+ step_type = gsl_odeiv2_step_rkck;
+ if (solver_type == "discrete")
+ step_type = gsl_odeiv2_step_rk8pd;
+ else
+ step_type = gsl_odeiv2_step_rkf45;
+
+ gsl_odeiv2_step *s = gsl_odeiv2_step_alloc (step_type, nequs);
gsl_odeiv2_control *c = gsl_odeiv2_control_y_new (eps_abs, eps_rel);
gsl_odeiv2_evolve *e = gsl_odeiv2_evolve_alloc (nequs);
diff --git a/2.3-1/src/c/differential_calculus/ode/dodes.c b/2.3-1/src/c/differential_calculus/ode/dodes.c
index ee6718bb..adef1ba7 100644
--- a/2.3-1/src/c/differential_calculus/ode/dodes.c
+++ b/2.3-1/src/c/differential_calculus/ode/dodes.c
@@ -1,13 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function for solving ODEs using GSL library*/
#include "ode.h"
#include "types.h"
@@ -17,20 +20,29 @@
double dodes(double initial_value, double start_time, double end_time, \
- char *ode_function, double nequs, double eps_abs, double eps_rel, \
- double step_size)
+ int (*ode_function), char *solver_type, double nequs, double eps_abs, \
+ double eps_rel, double step_size, int *params)
{
- double out = 0;
+ double out = 0, t = 0;
//int status;
+ out = initial_value;
+ t = start_time;
//Setup ODE related parameters
- gsl_odeiv2_system sys = {ode_function, NULL, 2, NULL};
+ gsl_odeiv2_system sys = {ode_function, NULL, nequs, NULL};
gsl_odeiv2_step *s = gsl_odeiv2_step_alloc (gsl_odeiv2_step_rkf45, nequs);
gsl_odeiv2_control *c = gsl_odeiv2_control_y_new (eps_abs, eps_rel);
gsl_odeiv2_evolve *e = gsl_odeiv2_evolve_alloc (nequs);
- gsl_odeiv2_evolve_apply_fixed_step (e, c, s, &sys, &start_time, step_size, &out);
-
+ while(t < end_time)
+ {
+ gsl_odeiv2_evolve_apply_fixed_step (e, c, s, &sys, &t, step_size, &out);
+ }
+
+ gsl_odeiv2_evolve_free (e);
+ gsl_odeiv2_control_free (c);
+ gsl_odeiv2_step_free (s);
+
return out;
}
diff --git a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalIns.c b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalIns.c
index 6f065586..8ce0b3ce 100644
--- a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalIns.c
+++ b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalIns.c
@@ -1,23 +1,31 @@
-// Function to read the state of the gpio pin
-//
-// Calling Sequence
-// u8RPI_DigitalIn(pin)
-//
-// Parameters
-// pin : pin of RPi to be read
-//
-// Returns
-// state: Current state of the specified gpio pin
-//
-// Description
-// There are few pins available on RPi as Gpio or digital i/o. These pins can be used as digital output or input. Using this function, current state (low/high) of any gpio pin can be read. 'pin' name must be provided from list provided. Please refer '' for complete list of pins. 'state' can be 0 or 1 depending upon state of the pin (Low/High). RPI_DigitalSetup with appropriate arguments must be called before using this function.
-// Examples
-// u8RPI_DigitalIn(RPI_GPIO_P1_03,1) //Returns the state of pin 3 of header P1
-//
-//
-// Authors
-// Siddhesh Wani
-//
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/* Function to read the state of the gpio pin
+
+ Calling Sequence
+ u8RPI_DigitalIn(pin)
+
+ Parameters
+ pin : pin of RPi to be read
+
+ Returns
+ state: Current state of the specified gpio pin
+
+ Description
+ There are few pins available on RPi as Gpio or digital i/o. These pins can be used as digital output or input. Using this function, current state (low/high) of any gpio pin can be read. 'pin' name must be provided from list provided. Please refer '' for complete list of pins. 'state' can be 0 or 1 depending upon state of the pin (Low/High). RPI_DigitalSetup with appropriate arguments must be called before using this function.
+ Examples
+ u8RPI_DigitalIn(RPI_GPIO_P1_03,1) //Returns the state of pin 3 of header P1
+*/
#include "types.h"
#include "RPIPeripheralDigital.h"
diff --git a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c
index 375ca891..d97f4588 100644
--- a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c
+++ b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c
@@ -1,21 +1,30 @@
-// Function to change the output state of the gpio pin
-//
-// Calling Sequence
-// u8RPI_DigitalOuts(pin,state)
-//
-// Parameters
-// pin : pin of RPi to be used
-// state : desired output state for pin (0 -> LOW, 1 -> HIGH)
-//
-// Description
-// There are few pins available on RPi as Gpio or digital i/o. These pins can be used as digital output or input. 'Pin' name must be provided from list provided. Please refer '' for complete list of pins. 'state' can be 0 or 1 depending upon desired output (Low/High). RPI_DigitalSetup with appropriate arguments must be called before using this function.
-// Examples
-// u8RPI_DigitalOuts(RPI_GPIO_P1_03,1) //Sets pin 3 of header P1 as 'high' output
-//
-//
-// Authors
-// Siddhesh Wani
-//
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/* Function to change the output state of the gpio pin
+
+ Calling Sequence
+ u8RPI_DigitalOuts(pin,state)
+
+ Parameters
+ pin : pin of RPi to be used
+ state : desired output state for pin (0 -> LOW, 1 -> HIGH)
+
+ Description
+ There are few pins available on RPi as Gpio or digital i/o. These pins can be used as digital output or input. 'Pin' name must be provided from list provided. Please refer '' for complete list of pins. 'state' can be 0 or 1 depending upon desired output (Low/High). RPI_DigitalSetup with appropriate arguments must be called before using this function.
+ Examples
+ u8RPI_DigitalOuts(RPI_GPIO_P1_03,1) //Sets pin 3 of header P1 as 'high' output
+*/
+
#include "types.h"
#include "RPIPeripheralDigital.h"
diff --git a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c
index 277c620f..657df3a1 100644
--- a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c
+++ b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalSetups.c
@@ -1,27 +1,33 @@
-// Function to setup digital pins.
-//
-// Calling Sequence
-// u8RPI_DigitalSetup(pin,direction)
-//
-// Parameters
-// pin : pin of RPi to be used
-// direction : direction to be set for pin (0 -> INPUT, 1 -> OUTPUT)
-//
-// Description
-// There are few pins available on RPi as Gpio or digital io. These pins can be used as digital output or input. Pin name must be provided from list provided. Please refer '' for complete list of pins. Direction can be 0 or 1 depending upon desired function (Input/output)
-// Examples
-// RPI_DigitalSetup(RPI_GPIO_P1_03,0) //Sets pin 3 of header P1 as input
-//
-// See also
-// RPI_DigitalIn RPI_DigitalOut
-//
-//
-// Authors
-// Siddhesh Wani
-//
-
-// This is curretly dummy function. It provides no functionality but is required
-// for providing support for generating C code for RPi.
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/* Function to setup digital pins.
+
+ Calling Sequence
+ u8RPI_DigitalSetup(pin,direction)
+
+ Parameters
+ pin : pin of RPi to be used
+ direction : direction to be set for pin (0 -> INPUT, 1 -> OUTPUT)
+
+ Description
+ There are few pins available on RPi as Gpio or digital io. These pins can be used as digital output or input. Pin name must be provided from list provided. Please refer '' for complete list of pins. Direction can be 0 or 1 depending upon desired function (Input/output)
+ Examples
+ RPI_DigitalSetup(RPI_GPIO_P1_03,0) //Sets pin 3 of header P1 as input
+
+ See also
+ RPI_DigitalIn RPI_DigitalOut
+*/
+
#include "types.h"
#include "RPIPeripheralDigital.h"
diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h
index 575a8b43..87fe7dc0 100644
--- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h
+++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralDigital.h
@@ -1,3 +1,15 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
/* This file declares functions and constants related to GPIO pins*/
#ifndef __RPIPERIPHERALGPIO_H__
@@ -19,4 +31,4 @@ uint8 u8RPIDigitalIns(uint8 pin);
} /* extern "C" */
#endif
-#endif //__RPIPERIPHERALGPIO_H__
+#endif /*__RPIPERIPHERALGPIO_H__*/
diff --git a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralUtil.h b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralUtil.h
index 809595f3..0b20ad66 100644
--- a/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralUtil.h
+++ b/2.3-1/src/c/hardware/rasberrypi/includes/RPIPeripheralUtil.h
@@ -1,3 +1,15 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
/* This file declares functions and constants related to rasberrypi*/
#ifndef __RPIPERIPHERALUTIL_H__
@@ -17,4 +29,4 @@ uint8 u16RPIDelayMicros(uint16 time);
} /* extern "C" */
#endif
-#endif //__RPIPERIPHERALUTIL_H__
+#endif /*__RPIPERIPHERALUTIL_H__*/
diff --git a/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h b/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h
index 022bed56..056f3cb8 100644
--- a/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h
+++ b/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralDigital.h
@@ -1,8 +1,14 @@
-//This file defines constants corresponding to gpios.
-//
-// Authors
-// Siddhesh Wani
-//
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
#ifndef __INT_RPIPERIPHERALGPIO_H__
#define __INT_RPIPERIPHERALGPIO_H__
diff --git a/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralUtil.h b/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralUtil.h
index 92020f9a..c53db3ba 100644
--- a/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralUtil.h
+++ b/2.3-1/src/c/hardware/rasberrypi/interfaces/int_RPIPeripheralUtil.h
@@ -1,7 +1,15 @@
-//
-// Authors
-// Siddhesh Wani
-//
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
#ifndef __INT_RPIPERIPHERALUTIL_H__
#define __INT_RPIPERIPHERALUTIL_H__
diff --git a/2.3-1/src/c/hardware/rasberrypi/libraries/libgsl.a b/2.3-1/src/c/hardware/rasberrypi/libraries/libgsl.a
new file mode 100644
index 00000000..1eb5d60d
--- /dev/null
+++ b/2.3-1/src/c/hardware/rasberrypi/libraries/libgsl.a
Binary files differ
diff --git a/2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMicros.c b/2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMicros.c
index e564d882..f29635be 100644
--- a/2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMicros.c
+++ b/2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMicros.c
@@ -1,24 +1,33 @@
-// Function to insert some delay in code execution.
-//
-// Calling Sequence
-// u16RPIDelayMicros(time)
-//
-// Parameters
-// time: time(microseconds) for which execution is to be delayed
-//
-// Description
-// this function can be used for insertig execution delays. 'time' should be
-// specified in microseconds.'time' should be between (1-65536).
-// Note: Delay inserted by this function is not accurate, but depedent on
-// operating system, other running tasks etc.
-//
-// Examples
-// u16RPIDelayMicros(100) //This will delay the execution of next code by 100 ms.
-//
-//
-// Authors
-// Siddhesh Wani
-//
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/* Function to insert some delay in code execution.
+
+ Calling Sequence
+ u16RPIDelayMicros(time)
+
+ Parameters
+ time: time(microseconds) for which execution is to be delayed
+
+ Description
+ this function can be used for insertig execution delays. 'time' should be
+ specified in microseconds.'time' should be between (1-65536).
+ Note: Delay inserted by this function is not accurate, but depedent on
+ operating system, other running tasks etc.
+
+ Examples
+ u16RPIDelayMicros(100) //This will delay the execution of next code by 100 ms.
+*/
+
#include "types.h"
#include "RPIPeripheralUtil.h"
diff --git a/2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMillis.c b/2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMillis.c
index bc2e6dd0..f03e8baa 100644
--- a/2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMillis.c
+++ b/2.3-1/src/c/hardware/rasberrypi/util/u16RPIDelayMillis.c
@@ -1,24 +1,33 @@
-// Function to insert some delay in code execution.
-//
-// Calling Sequence
-// u16RPIDelayMillis(time)
-//
-// Parameters
-// time: time(milliseconds) for which execution is to be delayed
-//
-// Description
-// this function can be used for insertig execution delays. 'time' should be
-// specified in milliseconds.'time' should be between (1-65536).
-// Note: Delay inserted by this function is not accurate, but depedent on
-// operating system, other running tasks etc.
-//
-// Examples
-// u16RPIDelayMillis(100) //This will delay the execution of next code by 100 ms.
-//
-//
-// Authors
-// Siddhesh Wani
-//
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/* Function to insert some delay in code execution.
+
+ Calling Sequence
+ u16RPIDelayMillis(time)
+
+ Parameters
+ time: time(milliseconds) for which execution is to be delayed
+
+ Description
+ this function can be used for insertig execution delays. 'time' should be
+ specified in milliseconds.'time' should be between (1-65536).
+ Note: Delay inserted by this function is not accurate, but depedent on
+ operating system, other running tasks etc.
+
+ Examples
+ u16RPIDelayMillis(100) //This will delay the execution of next code by 100 ms.
+*/
+
#include "types.h"
#include "RPIPeripheralUtil.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/dcolumncumproda.c b/2.3-1/src/c/matrixOperations/cumprod/dcolumncumproda.c
index 7bed70b4..4eec55fc 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/dcolumncumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/dcolumncumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/dcumproda.c b/2.3-1/src/c/matrixOperations/cumprod/dcumproda.c
index 0a408682..199880c6 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/dcumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/dcumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/drowcumproda.c b/2.3-1/src/c/matrixOperations/cumprod/drowcumproda.c
index 74b2bfc9..80178b26 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/drowcumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/drowcumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/i16columncumproda.c b/2.3-1/src/c/matrixOperations/cumprod/i16columncumproda.c
index 3c644775..81604bce 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/i16columncumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/i16columncumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+ /*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/i16cumproda.c b/2.3-1/src/c/matrixOperations/cumprod/i16cumproda.c
index 8352f416..8bee315d 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/i16cumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/i16cumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/i16rowcumproda.c b/2.3-1/src/c/matrixOperations/cumprod/i16rowcumproda.c
index 35ab6d48..175c8647 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/i16rowcumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/i16rowcumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/i8columncumproda.c b/2.3-1/src/c/matrixOperations/cumprod/i8columncumproda.c
index df9109d4..4a5b45db 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/i8columncumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/i8columncumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/i8cumproda.c b/2.3-1/src/c/matrixOperations/cumprod/i8cumproda.c
index ba502ba4..f0a54043 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/i8cumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/i8cumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/i8rowcumproda.c b/2.3-1/src/c/matrixOperations/cumprod/i8rowcumproda.c
index 20b4126d..ac5eebe1 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/i8rowcumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/i8rowcumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/scolumncumproda.c b/2.3-1/src/c/matrixOperations/cumprod/scolumncumproda.c
index 5c2c0c3f..d720eb2e 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/scolumncumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/scolumncumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/scumproda.c b/2.3-1/src/c/matrixOperations/cumprod/scumproda.c
index b50ea63f..fb55a31a 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/scumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/scumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/srowcumproda.c b/2.3-1/src/c/matrixOperations/cumprod/srowcumproda.c
index e3d146a9..d2f5db88 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/srowcumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/srowcumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/u16columncumproda.c b/2.3-1/src/c/matrixOperations/cumprod/u16columncumproda.c
index a0e821f7..3f23bd7e 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/u16columncumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/u16columncumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/u16cumproda.c b/2.3-1/src/c/matrixOperations/cumprod/u16cumproda.c
index de969fb3..5740e86f 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/u16cumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/u16cumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/u16rowcumproda.c b/2.3-1/src/c/matrixOperations/cumprod/u16rowcumproda.c
index 1ea4468a..645c814c 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/u16rowcumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/u16rowcumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/u8columncumproda.c b/2.3-1/src/c/matrixOperations/cumprod/u8columncumproda.c
index 70eb0583..7c9a66a1 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/u8columncumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/u8columncumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/u8cumproda.c b/2.3-1/src/c/matrixOperations/cumprod/u8cumproda.c
index 048b26fc..8970f193 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/u8cumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/u8cumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumprod/u8rowcumproda.c b/2.3-1/src/c/matrixOperations/cumprod/u8rowcumproda.c
index fb500c7b..937d0a4d 100644
--- a/2.3-1/src/c/matrixOperations/cumprod/u8rowcumproda.c
+++ b/2.3-1/src/c/matrixOperations/cumprod/u8rowcumproda.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumprod.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/dcolumncumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/dcolumncumsuma.c
index b97704e6..e26a9da5 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/dcolumncumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/dcolumncumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/dcumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/dcumsuma.c
index 6a2eb1bb..11b0a88f 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/dcumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/dcumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/drowcumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/drowcumsuma.c
index 5b46f16b..e523d677 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/drowcumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/drowcumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/i16columncumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/i16columncumsuma.c
index 5c43bbdc..8f0dcb5a 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/i16columncumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/i16columncumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/i16cumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/i16cumsuma.c
index 7632c589..4e2fb591 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/i16cumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/i16cumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/i16rowcumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/i16rowcumsuma.c
index 0e75f252..9cd98c5c 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/i16rowcumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/i16rowcumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/i8columncumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/i8columncumsuma.c
index 27fdbded..c7030496 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/i8columncumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/i8columncumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/i8cumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/i8cumsuma.c
index d8b9c329..8aa92871 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/i8cumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/i8cumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/i8rowcumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/i8rowcumsuma.c
index 39298ce5..017e920a 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/i8rowcumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/i8rowcumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/scolumncumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/scolumncumsuma.c
index befbdfe0..108c2c7f 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/scolumncumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/scolumncumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/scumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/scumsuma.c
index 83701867..122e165d 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/scumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/scumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/srowcumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/srowcumsuma.c
index 1ce17da9..b5b968f1 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/srowcumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/srowcumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/u16columncumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/u16columncumsuma.c
index bbff8c89..360caeb3 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/u16columncumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/u16columncumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/u16cumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/u16cumsuma.c
index 601a7efd..d403571a 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/u16cumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/u16cumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/u16rowcumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/u16rowcumsuma.c
index b27e4530..75ff1e6c 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/u16rowcumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/u16rowcumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/u8columncumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/u8columncumsuma.c
index 598c4a6c..a53467af 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/u8columncumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/u8columncumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/u8cumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/u8cumsuma.c
index 38792e65..4f2acfe6 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/u8cumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/u8cumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/cumsum/u8rowcumsuma.c b/2.3-1/src/c/matrixOperations/cumsum/u8rowcumsuma.c
index 184cf71f..41553cd5 100644
--- a/2.3-1/src/c/matrixOperations/cumsum/u8rowcumsuma.c
+++ b/2.3-1/src/c/matrixOperations/cumsum/u8rowcumsuma.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function returns cumulative sum of members of array/matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function returns cumulative sum of members of array/matrix*/
#include "cumsum.h"
#include "types.h"
diff --git a/2.3-1/src/c/matrixOperations/includes/cumprod.h b/2.3-1/src/c/matrixOperations/includes/cumprod.h
index bc08abaa..f47fd77a 100644
--- a/2.3-1/src/c/matrixOperations/includes/cumprod.h
+++ b/2.3-1/src/c/matrixOperations/includes/cumprod.h
@@ -1,14 +1,15 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
#ifndef __CUMPROD_H__
#define __CUMPROD_H__
@@ -16,7 +17,7 @@
#include "types.h"
#ifdef __cplusplus
-#extern "C" {
+extern "C" {
#endif
void dcumproda(double *in1, int row, int column, double *out);
@@ -46,7 +47,7 @@ void i16columncumproda(int16 *in1, int row, int column, int16 *out);
#ifdef __cplusplus
-#} /* extern "C" */
+} /* extern "C" */
#endif
#endif /*__CUMPROD_H__*/
diff --git a/2.3-1/src/c/matrixOperations/includes/cumsum.h b/2.3-1/src/c/matrixOperations/includes/cumsum.h
index 4c6a3b37..24d81bdf 100644
--- a/2.3-1/src/c/matrixOperations/includes/cumsum.h
+++ b/2.3-1/src/c/matrixOperations/includes/cumsum.h
@@ -1,14 +1,15 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
#ifndef __CUMSUM_H__
#define __CUMSUM_H__
@@ -16,7 +17,7 @@
#include "types.h"
#ifdef __cplusplus
-#extern "C" {
+extern "C" {
#endif
void dcumsuma(double *in1, int row, int column, double *out);
@@ -46,7 +47,7 @@ void i16columncumsuma(int16 *in1, int row, int column, int16 *out);
#ifdef __cplusplus
-#} /* extern "C" */
+} /* extern "C" */
#endif
#endif /*__CUMSUM_H__*/
diff --git a/2.3-1/src/c/matrixOperations/includes/flipdim.h b/2.3-1/src/c/matrixOperations/includes/flipdim.h
index c6dd91d5..bdf4a688 100644
--- a/2.3-1/src/c/matrixOperations/includes/flipdim.h
+++ b/2.3-1/src/c/matrixOperations/includes/flipdim.h
@@ -1,14 +1,15 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
#ifndef __FLIPDIM_H__
#define __FLIPDIM_H__
@@ -17,7 +18,7 @@
#ifdef __cplusplus
-#extern "C" {
+extern "C" {
#endif
void dflipdima (double *in, int row, int col, int dim, int blk_size, double *out);
@@ -33,7 +34,7 @@ void u16flipdima (uint16 *in, int row, int col, int dim, int blk_size, uint16 *o
void i16flipdima (int16 *in, int row, int col, int dim, int blk_size, int16 *out);
#ifdef __cplusplus
-#} /* extern "C" */
+} /* extern "C" */
#endif
#endif /*__FLIPDIM_H__*/
diff --git a/2.3-1/src/c/matrixOperations/includes/kron.h b/2.3-1/src/c/matrixOperations/includes/kron.h
index f635d5e0..e4cff2dc 100644
--- a/2.3-1/src/c/matrixOperations/includes/kron.h
+++ b/2.3-1/src/c/matrixOperations/includes/kron.h
@@ -1,14 +1,15 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
#ifndef __KRON_H__
#define __KRON_H__
@@ -16,7 +17,7 @@
#include "kron.h"
#ifdef __cplusplus
-#extern "C" {
+extern "C" {
#endif
void dkrona (double *in1, int row1, int col1, double *in2, int row2, \
@@ -25,7 +26,7 @@ void skrona (float *in1, int row1, int col1, float *in2, int row2, \
int col2, float *out);
#ifdef __cplusplus
-#} /* extern "C" */
+} /* extern "C" */
#endif
#endif /*__KRON_H__*/
diff --git a/2.3-1/src/c/matrixOperations/includes/tril.h b/2.3-1/src/c/matrixOperations/includes/tril.h
index e61a3b72..486e81f9 100644
--- a/2.3-1/src/c/matrixOperations/includes/tril.h
+++ b/2.3-1/src/c/matrixOperations/includes/tril.h
@@ -1,14 +1,15 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
#ifndef __TRIL_H__
#define __TRIL_H__
@@ -16,7 +17,7 @@
#include "types.h"
#ifdef __cplusplus
-#extern "C" {
+extern "C" {
#endif
void dtrila (double *in, int row, int column, double diag, double *out);
@@ -27,7 +28,7 @@ void i8trila (int8 *in, int row, int column, double diag, int8 *out);
void i16trila (int16 *in, int row, int column, double diag, int16 *out);
#ifdef __cplusplus
-#} /* extern "C" */
+} /* extern "C" */
#endif
#endif /*__TRIL_H__*/
diff --git a/2.3-1/src/c/matrixOperations/includes/triu.h b/2.3-1/src/c/matrixOperations/includes/triu.h
index 1dda2794..2b62e22b 100644
--- a/2.3-1/src/c/matrixOperations/includes/triu.h
+++ b/2.3-1/src/c/matrixOperations/includes/triu.h
@@ -1,14 +1,15 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
#ifndef __TRIU_H__
#define __TRIU_H__
@@ -16,7 +17,7 @@
#include "types.h"
#ifdef __cplusplus
-#extern "C" {
+extern "C" {
#endif
void dtriua (double *in, int row, int column, double diag, double *out);
@@ -27,7 +28,7 @@ void i8triua (int8 *in, int row, int column, double diag, int8 *out);
void i16triua (int16 *in, int row, int column, double diag, int16 *out);
#ifdef __cplusplus
-#} /* extern "C" */
+} /* extern "C" */
#endif
#endif /*__TRIU_H__*/
diff --git a/2.3-1/src/c/matrixOperations/interfaces/int_cumprod.h b/2.3-1/src/c/matrixOperations/interfaces/int_cumprod.h
index 722efbba..5ba3cc7a 100644
--- a/2.3-1/src/c/matrixOperations/interfaces/int_cumprod.h
+++ b/2.3-1/src/c/matrixOperations/interfaces/int_cumprod.h
@@ -1,21 +1,21 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
#ifndef __INT_CUMPROD_H__
#define __INT_CUMPROD_H__
#ifdef __cplusplus
-#extern "C" {
+extern "C" {
#endif
#define d0cumprodd0(in) in
@@ -48,7 +48,7 @@
#ifdef __cplusplus
-#} /* extern "C" */
+} /* extern "C" */
#endif
#endif /*__INT_CUMPROD_H__*/
diff --git a/2.3-1/src/c/matrixOperations/interfaces/int_cumsum.h b/2.3-1/src/c/matrixOperations/interfaces/int_cumsum.h
index c09a9b46..0eda0ac9 100644
--- a/2.3-1/src/c/matrixOperations/interfaces/int_cumsum.h
+++ b/2.3-1/src/c/matrixOperations/interfaces/int_cumsum.h
@@ -1,21 +1,21 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
#ifndef __INT_CUMSUM_H__
#define __INT_CUMSUM_H__
#ifdef __cplusplus
-#extern "C" {
+extern "C" {
#endif
#define d0cumsumd0(in) in
@@ -48,7 +48,7 @@
#ifdef __cplusplus
-#} /* extern "C" */
+} /* extern "C" */
#endif
#endif /*__INT_CUMSUM_H__*/
diff --git a/2.3-1/src/c/matrixOperations/interfaces/int_flipdim.h b/2.3-1/src/c/matrixOperations/interfaces/int_flipdim.h
index d3996563..0c27181f 100644
--- a/2.3-1/src/c/matrixOperations/interfaces/int_flipdim.h
+++ b/2.3-1/src/c/matrixOperations/interfaces/int_flipdim.h
@@ -1,21 +1,21 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
#ifndef __INT_FLIPDIM_H__
#define __INT_FLIPDIM_H__
#ifdef __cplusplus
-#extern "C" {
+extern "C" {
#endif
#define d0d0flipdimd0(in1, in2) in1
@@ -103,7 +103,7 @@
#ifdef __cplusplus
-#} /* extern "C" */
+} /* extern "C" */
#endif
#endif /*__INT_FLIPDIM_H__*/
diff --git a/2.3-1/src/c/matrixOperations/interfaces/int_kron.h b/2.3-1/src/c/matrixOperations/interfaces/int_kron.h
index 93d25756..a6fbaab1 100644
--- a/2.3-1/src/c/matrixOperations/interfaces/int_kron.h
+++ b/2.3-1/src/c/matrixOperations/interfaces/int_kron.h
@@ -1,21 +1,21 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
#ifndef __INT_KRON_H__
#define __INT_KRON_H__
#ifdef __cplusplus
-#extern "C" {
+extern "C" {
#endif
#define d0d0krond0(in1, in2) in1*in2
@@ -37,7 +37,7 @@
in2, size2[0], size2[1], out);
#ifdef __cplusplus
-#} /* extern "C" */
+} /* extern "C" */
#endif
#endif /*__INT_KRON_H__*/
diff --git a/2.3-1/src/c/matrixOperations/interfaces/int_permute.h b/2.3-1/src/c/matrixOperations/interfaces/int_permute.h
index 5f2bea58..66049aca 100644
--- a/2.3-1/src/c/matrixOperations/interfaces/int_permute.h
+++ b/2.3-1/src/c/matrixOperations/interfaces/int_permute.h
@@ -1,14 +1,14 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
#ifndef __INT_PERMUTE_H__
#define __INT_PERMUTE_H__
diff --git a/2.3-1/src/c/matrixOperations/interfaces/int_tril.h b/2.3-1/src/c/matrixOperations/interfaces/int_tril.h
index d362aabf..6d694519 100644
--- a/2.3-1/src/c/matrixOperations/interfaces/int_tril.h
+++ b/2.3-1/src/c/matrixOperations/interfaces/int_tril.h
@@ -1,21 +1,21 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
#ifndef __INT_TRIL_H__
#define __INT_TRIL_H__
#ifdef __cplusplus
-#extern "C" {
+extern "C" {
#endif
#define d0trild0(in) in
@@ -56,7 +56,7 @@
#ifdef __cplusplus
-#} /* extern "C" */
+} /* extern "C" */
#endif
#endif /*__INT_TRIL_H__*/
diff --git a/2.3-1/src/c/matrixOperations/interfaces/int_triu.h b/2.3-1/src/c/matrixOperations/interfaces/int_triu.h
index fd5448ec..1aef3115 100644
--- a/2.3-1/src/c/matrixOperations/interfaces/int_triu.h
+++ b/2.3-1/src/c/matrixOperations/interfaces/int_triu.h
@@ -1,21 +1,21 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
-
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
#ifndef __INT_TRIU_H__
#define __INT_TRIU_H__
#ifdef __cplusplus
-#extern "C" {
+extern "C" {
#endif
#define d0triud0(in) in
@@ -56,7 +56,7 @@
#ifdef __cplusplus
-#} /* extern "C" */
+} /* extern "C" */
#endif
#endif /*__INT_TRIU_H__*/
diff --git a/2.3-1/src/c/matrixOperations/kron/dkrona.c b/2.3-1/src/c/matrixOperations/kron/dkrona.c
index 9379f96c..6da6ed59 100644
--- a/2.3-1/src/c/matrixOperations/kron/dkrona.c
+++ b/2.3-1/src/c/matrixOperations/kron/dkrona.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function for kroneker product of two matrices
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function for kroneker product of two matrices*/
#include "kron.h"
diff --git a/2.3-1/src/c/matrixOperations/kron/skrona.c b/2.3-1/src/c/matrixOperations/kron/skrona.c
index 368d04b5..7b154fed 100644
--- a/2.3-1/src/c/matrixOperations/kron/skrona.c
+++ b/2.3-1/src/c/matrixOperations/kron/skrona.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function for kroneker product of two matrices
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function for kroneker product of two matrices*/
#include "kron.h"
diff --git a/2.3-1/src/c/matrixOperations/tril/dtrila.c b/2.3-1/src/c/matrixOperations/tril/dtrila.c
index b727e5c8..b16d7e56 100644
--- a/2.3-1/src/c/matrixOperations/tril/dtrila.c
+++ b/2.3-1/src/c/matrixOperations/tril/dtrila.c
@@ -1,15 +1,17 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function to extract lower triagular entries from given matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function to extract lower triagular entries from given matrix*/
+
#include "triu.h"
void dtrila (double *in, int row, int column, double diag, double *out)
diff --git a/2.3-1/src/c/matrixOperations/tril/i16trila.c b/2.3-1/src/c/matrixOperations/tril/i16trila.c
index e17b361b..52536471 100644
--- a/2.3-1/src/c/matrixOperations/tril/i16trila.c
+++ b/2.3-1/src/c/matrixOperations/tril/i16trila.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function to extract lower triagular entries from given matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function to extract lower triagular entries from given matrix*/
#include "triu.h"
diff --git a/2.3-1/src/c/matrixOperations/tril/i8trila.c b/2.3-1/src/c/matrixOperations/tril/i8trila.c
index a91594a9..f361c64a 100644
--- a/2.3-1/src/c/matrixOperations/tril/i8trila.c
+++ b/2.3-1/src/c/matrixOperations/tril/i8trila.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function to extract lower triagular entries from given matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function to extract lower triagular entries from given matrix*/
#include "triu.h"
diff --git a/2.3-1/src/c/matrixOperations/tril/strila.c b/2.3-1/src/c/matrixOperations/tril/strila.c
index f5880894..d0869369 100644
--- a/2.3-1/src/c/matrixOperations/tril/strila.c
+++ b/2.3-1/src/c/matrixOperations/tril/strila.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function to extract lower triagular entries from given matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function to extract lower triagular entries from given matrix*/
#include "triu.h"
diff --git a/2.3-1/src/c/matrixOperations/tril/u16trila.c b/2.3-1/src/c/matrixOperations/tril/u16trila.c
index d6974183..23d86cd1 100644
--- a/2.3-1/src/c/matrixOperations/tril/u16trila.c
+++ b/2.3-1/src/c/matrixOperations/tril/u16trila.c
@@ -1,15 +1,17 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function to extract lower triagular entries from given matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function to extract lower triagular entries from given matrix*/
+
#include "triu.h"
void u16trila (uint16 *in, int row, int column, double diag, uint16 *out)
diff --git a/2.3-1/src/c/matrixOperations/tril/u8trila.c b/2.3-1/src/c/matrixOperations/tril/u8trila.c
index ebc4d726..e80c05c8 100644
--- a/2.3-1/src/c/matrixOperations/tril/u8trila.c
+++ b/2.3-1/src/c/matrixOperations/tril/u8trila.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function to extract lower triagular entries from given matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function to extract lower triagular entries from given matrix*/
#include "triu.h"
diff --git a/2.3-1/src/c/matrixOperations/triu/dtriua.c b/2.3-1/src/c/matrixOperations/triu/dtriua.c
index 3a3cc0e5..80db14b3 100644
--- a/2.3-1/src/c/matrixOperations/triu/dtriua.c
+++ b/2.3-1/src/c/matrixOperations/triu/dtriua.c
@@ -1,15 +1,17 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function to extract lower triagular entries from given matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function to extract lower triagular entries from given matrix*/
+
#include "triu.h"
void dtriua (double *in, int row, int column, double diag, double *out)
diff --git a/2.3-1/src/c/matrixOperations/triu/i16triua.c b/2.3-1/src/c/matrixOperations/triu/i16triua.c
index c4b397f5..a4a0e9f3 100644
--- a/2.3-1/src/c/matrixOperations/triu/i16triua.c
+++ b/2.3-1/src/c/matrixOperations/triu/i16triua.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function to extract lower triagular entries from given matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function to extract lower triagular entries from given matrix*/
#include "triu.h"
diff --git a/2.3-1/src/c/matrixOperations/triu/i8triua.c b/2.3-1/src/c/matrixOperations/triu/i8triua.c
index 6493ad17..c5dcee5d 100644
--- a/2.3-1/src/c/matrixOperations/triu/i8triua.c
+++ b/2.3-1/src/c/matrixOperations/triu/i8triua.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function to extract lower triagular entries from given matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function to extract lower triagular entries from given matrix*/
#include "triu.h"
diff --git a/2.3-1/src/c/matrixOperations/triu/striua.c b/2.3-1/src/c/matrixOperations/triu/striua.c
index 95305efd..8ec779ea 100644
--- a/2.3-1/src/c/matrixOperations/triu/striua.c
+++ b/2.3-1/src/c/matrixOperations/triu/striua.c
@@ -1,15 +1,16 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function to extract lower triagular entries from given matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function to extract lower triagular entries from given matrix*/
#include "triu.h"
diff --git a/2.3-1/src/c/matrixOperations/triu/u16triua.c b/2.3-1/src/c/matrixOperations/triu/u16triua.c
index 2786c041..6341881b 100644
--- a/2.3-1/src/c/matrixOperations/triu/u16triua.c
+++ b/2.3-1/src/c/matrixOperations/triu/u16triua.c
@@ -1,15 +1,17 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function to extract lower triagular entries from given matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function to extract lower triagular entries from given matrix*/
+
#include "triu.h"
void u16triua (uint16 *in, int row, int column, double diag, uint16 *out)
diff --git a/2.3-1/src/c/matrixOperations/triu/u8triua.c b/2.3-1/src/c/matrixOperations/triu/u8triua.c
index 8ab3cb17..4637e873 100644
--- a/2.3-1/src/c/matrixOperations/triu/u8triua.c
+++ b/2.3-1/src/c/matrixOperations/triu/u8triua.c
@@ -1,15 +1,17 @@
-// Copyright (C) 2016 - IIT Bombay - FOSSEE
-//
-// 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
-// Author: Siddhesh Wani
-// Organization: FOSSEE, IIT Bombay
-// Email: toolbox@scilab.in
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
-//Function to extract lower triagular entries from given matrix
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+/*Function to extract lower triagular entries from given matrix*/
+
#include "triu.h"