package Jampack; /** Minus negates a matrix or computes the difference of two matrices. @version Pre-alpha @author G. W. Stewart */ public class Minus{ /** Computes the difference of two Zmats. @param A The diminuend @param B The subtrahend @return A-B @exception JampackException Thrown if there is a nonconformity. */ public static Zmat o(Zmat A, Zmat B) throws JampackException{ if (A.nrow!=B.nrow || A.ncol != B.ncol) throw new JampackException ("Matrices not conformable for subtraction"); Zmat C = new Zmat(A.nrow, A.ncol); for (int i=0; i