Jampack
Class Minus

java.lang.Object
  extended by Jampack.Minus

public class Minus
extends java.lang.Object

Minus negates a matrix or computes the difference of two matrices.

Version:
Pre-alpha
Author:
G. W. Stewart

Constructor Summary
Minus()
           
 
Method Summary
static Zdiagmat o(Zdiagmat D)
          Negates a Zdiagmat.
static Zdiagmat o(Zdiagmat D1, Zdiagmat D2)
          Computes the difference of a two Zdiagmats.
static Zmat o(Zdiagmat D, Zmat A)
          Computes the difference of a Zdiagmat and a Zmat.
static Zmat o(Zmat A)
          Negates a Zmat
static Zmat o(Zmat A, Zdiagmat D)
          Computes the difference of a Zmat and a Zdiagmat.
static Zmat o(Zmat A, Zmat B)
          Computes the difference of two Zmats.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Minus

public Minus()
Method Detail

o

public static Zmat o(Zmat A,
                     Zmat B)
              throws JampackException
Computes the difference of two Zmats.

Parameters:
A - The diminuend
B - The subtrahend
Returns:
A-B
Throws:
JampackException - Thrown if there is a nonconformity.

o

public static Zmat o(Zmat A)
Negates a Zmat

Parameters:
A - The matrix to be negated
Returns:
-A

o

public static Zmat o(Zmat A,
                     Zdiagmat D)
              throws JampackException
Computes the difference of a Zmat and a Zdiagmat.

Parameters:
A - The Zmat
D - The Zdiagmat
Returns:
A - D
Throws:
JampackException - Thrown if there is a nonconformity.

o

public static Zmat o(Zdiagmat D,
                     Zmat A)
              throws JampackException
Computes the difference of a Zdiagmat and a Zmat.

Parameters:
D - The Zdiagmat
A - The Zmat
Returns:
D - A
Throws:
JampackException - Thrown if there is a nonconformity.

o

public static Zdiagmat o(Zdiagmat D1,
                         Zdiagmat D2)
                  throws JampackException
Computes the difference of a two Zdiagmats.

Parameters:
D1 - The first Zdiagmat
D2 - The second Zdiagmat
Returns:
D1 - D2
Throws:
JampackException - Thrown if there is a nonconformity.

o

public static Zdiagmat o(Zdiagmat D)
Negates a Zdiagmat.

Parameters:
D - The Zdiagmat
Returns:
-D