summaryrefslogtreecommitdiff
path: root/2.3-1/macros/FunctionAnnotation
diff options
context:
space:
mode:
authorSiddhesh Wani2017-06-21 15:15:46 +0530
committerGitHub2017-06-21 15:15:46 +0530
commitfb56458ea04849e82f41d9c0f5c817a22839f848 (patch)
treef504c068fe6763f6cf32735e9107cc357c2655a7 /2.3-1/macros/FunctionAnnotation
parent0051253bc224286c118c080c79eaed5bf611bd35 (diff)
parent33e4ef72e7f712eb34a0a87e7b45fcca7d08393c (diff)
downloadScilab2C-fb56458ea04849e82f41d9c0f5c817a22839f848.tar.gz
Scilab2C-fb56458ea04849e82f41d9c0f5c817a22839f848.tar.bz2
Scilab2C-fb56458ea04849e82f41d9c0f5c817a22839f848.zip
Merge pull request #9 from sandeepgupta007/master
Linear Algebra - Functions Updated
Diffstat (limited to '2.3-1/macros/FunctionAnnotation')
-rw-r--r--2.3-1/macros/FunctionAnnotation/FA_SZ_U_SVA.sci39
-rw-r--r--2.3-1/macros/FunctionAnnotation/libbin2280 -> 3630 bytes
-rw-r--r--2.3-1/macros/FunctionAnnotation/names1
3 files changed, 40 insertions, 0 deletions
diff --git a/2.3-1/macros/FunctionAnnotation/FA_SZ_U_SVA.sci b/2.3-1/macros/FunctionAnnotation/FA_SZ_U_SVA.sci
new file mode 100644
index 00000000..695bef02
--- /dev/null
+++ b/2.3-1/macros/FunctionAnnotation/FA_SZ_U_SVA.sci
@@ -0,0 +1,39 @@
+function opout = FA_SZ_U_SVA(in1,in2)
+
+// function opout = FA_SZ_U_SVA(in1,in2)
+// -----------------------------------------------------------------
+// Determines the number of rows of the output arguments
+// according to the second input argument.
+//
+// Input data:
+// in1: specifying a matrix or a symbol.
+// in2: string specifying a number or a symbol.
+//
+// Output data:
+// opout: string containing the computed size of U matrix.
+//
+// Copyright (C) 2017 - 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: Sandeep Gupta
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+//
+// -----------------------------------------------------------------
+
+//in1 = string(in1);
+disp(in1)
+disp(in2)
+//in1 = eval(in1);
+//in2 = string(in2);
+//in2 = eval(in2);
+//[U,S,V] = sva(in1,in2);
+//outsize = size(U)
+//opout = outsize(2)
+opout = string(in2)
+
+endfunction
diff --git a/2.3-1/macros/FunctionAnnotation/lib b/2.3-1/macros/FunctionAnnotation/lib
index 3608981c..db2c80b7 100644
--- a/2.3-1/macros/FunctionAnnotation/lib
+++ b/2.3-1/macros/FunctionAnnotation/lib
Binary files differ
diff --git a/2.3-1/macros/FunctionAnnotation/names b/2.3-1/macros/FunctionAnnotation/names
index 8962de09..099014d5 100644
--- a/2.3-1/macros/FunctionAnnotation/names
+++ b/2.3-1/macros/FunctionAnnotation/names
@@ -57,6 +57,7 @@ FA_SZ_ROW_DIAG
FA_SZ_ROW_DIAG_INS_EXT
FA_SZ_SEL1
FA_SZ_SEL2
+FA_SZ_U_SVA
FA_TP_C
FA_TP_COMPLEX
FA_TP_CVIMAGE