Пример #1
0
 // Divide this matrix by a PhasorMatrix [equivalence of /=]
 public void overEquals(PhasorMatrix bmat) {
   if ((this.nrow != bmat.nrow) || (this.ncol != bmat.ncol)) {
     throw new IllegalArgumentException("Array dimensions do not agree");
   }
   PhasorMatrix cmat = new PhasorMatrix(bmat);
   this.timesEquals(cmat.inverse());
 }
Пример #2
0
  // Divide this matrix by a Phasor 2-D array.
  public PhasorMatrix over(Phasor[][] bmat) {
    int nr = bmat.length;
    int nc = bmat[0].length;
    if ((this.nrow != nr) || (this.ncol != nc)) {
      throw new IllegalArgumentException("Array dimensions do not agree");
    }

    PhasorMatrix cmat = new PhasorMatrix(bmat);
    return this.times(cmat.inverse());
  }
Пример #3
0
 // DIVISION
 // Divide this PhasorMatrix by a PhasorMatrix.
 public PhasorMatrix over(PhasorMatrix bmat) {
   if ((this.nrow != bmat.nrow) || (this.ncol != bmat.ncol)) {
     throw new IllegalArgumentException("Array dimensions do not agree");
   }
   return this.times(bmat.inverse());
 }