From b22f596ce449869bffd8e0f63baee1c53e20fa06 Mon Sep 17 00:00:00 2001 From: jofret Date: Tue, 28 Apr 2009 07:11:01 +0000 Subject: Moving macros here --- macros/FunctionAnnotation/FA_SZ_OPSLASH.sci | 45 +++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 macros/FunctionAnnotation/FA_SZ_OPSLASH.sci (limited to 'macros/FunctionAnnotation/FA_SZ_OPSLASH.sci') diff --git a/macros/FunctionAnnotation/FA_SZ_OPSLASH.sci b/macros/FunctionAnnotation/FA_SZ_OPSLASH.sci new file mode 100644 index 00000000..78ddecec --- /dev/null +++ b/macros/FunctionAnnotation/FA_SZ_OPSLASH.sci @@ -0,0 +1,45 @@ +function opoutsize = FA_SZ_OPSLASH(in1size,in2size) +// function opoutsize = FA_SZ_OPSLASH(in1size,in2size) +// ----------------------------------------------------------------- +// Returns the size of the output computed by OPSLASH operator. +// +// +// Status: +// 28-May-2008 -- Alberto Morea: Author. +// 28-May-2008 -- Raffaele Nutricato: Test Ok. +// +// Copyright 2008 Raffaele Nutricato & Alberto Morea. +// Contact: raffaele.nutricato@tiscali.it +// ----------------------------------------------------------------- + +// ------------------------------ +// --- Check input arguments. --- +// ------------------------------ +SCI2CNInArgCheck(argn(2),2,2); + +// ------------------------ +// --- Generate Output. --- +// ------------------------ +in1size=string(in1size); +in2size=string(in2size); + +// knowing that +// b/a = (a' \ b')' + +// a' +in1sizetmp(1) = in1size(2); +in1sizetmp(2) = in1size(1); + +// b' +in2sizetmp(1) = in2size(2); +in2sizetmp(2) = in2size(1); + +// a'\b' +opoutsizetmp = FA_SZ_OPBACKSLASH(in2sizetmp,in1sizetmp); + +// (a'\b')' +opoutsize(1) = opoutsizetmp(2); +opoutsize(2) = opoutsizetmp(1); + + +endfunction -- cgit