summaryrefslogtreecommitdiff
path: root/macros/FunctionAnnotation/FA_SZ_OPSLASH.sci
blob: 78ddecec6e981bfd065bf11fd0b88ae2f911a407 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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