1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) INRIA
3//
4// Copyright (C) 2012 - 2016 - Scilab Enterprises
5//
6// This file is hereby licensed under the terms of the GNU GPL v2.0,
7// pursuant to article 5.3.4 of the CeCILL v.2.1.
8// This file was originally licensed under the terms of the CeCILL v2.1,
9// and continues to be available under such terms.
10// For more information, see the COPYING file which you should have received
11// along with this program.
12
13function r=%p_z_s(a,b)
14    // a.\.b
15
16    [ma,na]=size(a)
17    [mb,nb]=size(b)
18    r=zeros(ma*mb,na*nb)
19    k=0
20    for j=1:na
21        l=0
22        for i=1:ma
23            r(l+(1:mb),k+(1:nb))=a(i,j).\b
24            l=l+mb
25        end
26        k=k+nb
27    end
28endfunction
29