From 765d9c44f94634406eeff50e20e8cdfcf1b7699c Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Thu, 2 Feb 2017 16:02:41 +0530 Subject: Support for function 'schur' added q --- macros/CCodeGeneration/C_Funcall.bin | Bin 73180 -> 73176 bytes macros/CCodeGeneration/C_Funcall.sci | 1 - macros/CCodeGeneration/C_Type.bin | Bin 5716 -> 6816 bytes macros/CCodeGeneration/C_Type.sci | 8 ++++++++ 4 files changed, 8 insertions(+), 1 deletion(-) (limited to 'macros/CCodeGeneration') diff --git a/macros/CCodeGeneration/C_Funcall.bin b/macros/CCodeGeneration/C_Funcall.bin index 0ae6c26..80fda7c 100644 Binary files a/macros/CCodeGeneration/C_Funcall.bin and b/macros/CCodeGeneration/C_Funcall.bin 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 Binary files a/macros/CCodeGeneration/C_Type.bin and b/macros/CCodeGeneration/C_Type.bin 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 -- cgit