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.
12function r=%r_y_p(a,b)
13    // a./.b
14    [ma,na]=size(a)
15    [mb,nb]=size(b)
16    r=zeros(ma*mb,na*nb)
17    k=0
18    for j=1:na
19        l=0
20        for i=1:ma
21            r(l+(1:mb),k+(1:nb))=a(i,j)./b
22            l=l+mb
23        end
24        k=k+nb
25    end
26endfunction
27