/* ## class DTriUp ## ## This class holds the routines for a upper triangular matrix stored ## in full form. There is no factor routine; triangular matrices are ## already in factored form. ## */ package edu.rice.linpack.Matrix.DMatrix; import edu.rice.linpack.util.*; import edu.rice.linpack.Vector.*; import edu.rice.linpack.LNumber.*; public class DTriUp extends DTriFull { public DTriUp() { super(); } public DTriUp(int i, int j) { Mat = new double[i][j]; rows = i; cols = j; } public DTriUp(double[][] F) { rows = F.length; cols = (F[0]).length; Mat = F; } public DTriUp(DTriUp M) { rows = M.rows; cols = M.cols; Mat = new double[rows][cols]; for(int i=0;i 0) { for(int j=nm-1;j>=0;j--) { double T = -B[j+1]; this.axpy(j+1, T, 1,0,j+1,B,1,0); B[j] = B[j]/this.Mat[j][j]; } } } else { B[0] = B[0]/this.Mat[0][0]; if(cols > 1) { for(int j=1;j