summaryrefslogtreecommitdiff
path: root/macros/CCodeGeneration
diff options
context:
space:
mode:
authorsiddhu89902017-02-02 16:02:41 +0530
committersiddhu89902017-02-02 16:02:41 +0530
commit765d9c44f94634406eeff50e20e8cdfcf1b7699c (patch)
tree25feaba0f050fc3295b7dbfb3c5b6134c920508a /macros/CCodeGeneration
parenta9bdd75eb989bc302ba98e3b6cb329fceaeb385e (diff)
downloadScilab2C_fossee_old-765d9c44f94634406eeff50e20e8cdfcf1b7699c.tar.gz
Scilab2C_fossee_old-765d9c44f94634406eeff50e20e8cdfcf1b7699c.tar.bz2
Scilab2C_fossee_old-765d9c44f94634406eeff50e20e8cdfcf1b7699c.zip
Support for function 'schur' added
q
Diffstat (limited to 'macros/CCodeGeneration')
-rw-r--r--macros/CCodeGeneration/C_Funcall.binbin73180 -> 73176 bytes
-rw-r--r--macros/CCodeGeneration/C_Funcall.sci1
-rw-r--r--macros/CCodeGeneration/C_Type.binbin5716 -> 6816 bytes
-rw-r--r--macros/CCodeGeneration/C_Type.sci8
4 files changed, 8 insertions, 1 deletions
diff --git a/macros/CCodeGeneration/C_Funcall.bin b/macros/CCodeGeneration/C_Funcall.bin
index 0ae6c26..80fda7c 100644
--- a/macros/CCodeGeneration/C_Funcall.bin
+++ b/macros/CCodeGeneration/C_Funcall.bin
Binary files differ
diff --git a/macros/CCodeGeneration/C_Funcall.sci b/macros/CCodeGeneration/C_Funcall.sci
index 431e4e9..450ad08 100644
--- a/macros/CCodeGeneration/C_Funcall.sci
+++ b/macros/CCodeGeneration/C_Funcall.sci
@@ -229,7 +229,6 @@ else
else
TmpInArgName = InArg(counterin).Name;
end
-
TmpInArgType = C_Type(InArg(counterin).Type);
//if (FunctionName == 'OpEqual')
diff --git a/macros/CCodeGeneration/C_Type.bin b/macros/CCodeGeneration/C_Type.bin
index fd02434..7b5bf44 100644
--- a/macros/CCodeGeneration/C_Type.bin
+++ b/macros/CCodeGeneration/C_Type.bin
Binary files differ
diff --git a/macros/CCodeGeneration/C_Type.sci b/macros/CCodeGeneration/C_Type.sci
index 13cf6de..d296c5c 100644
--- a/macros/CCodeGeneration/C_Type.sci
+++ b/macros/CCodeGeneration/C_Type.sci
@@ -52,6 +52,14 @@ elseif (ArgType == 'fn') //This type introduced for ODE function,
OutC_Type = '';
elseif (ArgType == 'mt')
OutC_Type = 'Mat'
+elseif (ArgType == 'ss')
+ OutC_Type = 'double'
+ //This type is introduced for storing state space systems.
+ //It is a matrix of size (n+k)*(n+m+1), for n states, m inputs,
+ //k outputs. It stores matrices A,B,C,D and initial state in following form
+ // | A B X0 |
+ // | C D 0 |
+
else
error(9999, 'Unknown Argument Type: ""'+ArgType+'"".');
end