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 M1=%hm_r_s(M1,M2)
14
15    if size(M2,"*")<>1 then
16        // M1 = M1/M2    // endless recursive call!
17        msg = _("%s: not implemented for argin#1 hypermatrix and argin#2 matrix\n")
18        error(msprint(msg, "%hm_r_s"))
19    else
20        M1 = matrix(M1(:)/M2, size(M1))
21    end
22endfunction
23