c Scilab ( http://www.scilab.org/ ) - This file is part of Scilab c Copyright (C) INRIA c c This file must be used under the terms of the CeCILL. c This source file is licensed as described in the file COPYING, which c you should have received as part of this distribution. The terms c are also available at c http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt c subroutine fmc11b(a,n,ir) c factorize a matrix given in a implicit double precision (a-h,o-z) dimension a(*) ir=n if(n.gt.1)goto100 if(a(1).gt.0.d0)return a(1)=0.d0 ir=0 return 100 continue np=n+1 ii=1 do 104 i=2,n aa=a(ii) ni=ii+np-i if(aa.gt.0.d0)goto101 a(ii)=0.d0 ir=ir-1 ii=ni+1 goto104 101 continue ip=ii+1 ii=ni+1 jk=ii do 103 ij=ip,ni v=a(ij)/aa do 102 ik=ij,ni a(jk)=a(jk)-a(ik)*v 102 jk=jk+1 103 a(ij)=v 104 continue if(a(ii).gt.0.d0)return a(ii)=0.d0 ir=ir-1 return end