jmathlib.toolbox.jmathlib.matrix._private.Jampack
Class Merge

java.lang.Object
  extended by jmathlib.toolbox.jmathlib.matrix._private.Jampack.Merge

public class Merge
extends java.lang.Object

Merge is a class containing programs to merge matrices into one big matrix. The basic method (Merge.o) takes an array of Zmat's and merges them. For conformity, the Zmats along a row of the array must have the same number of rows, and the Zmats along a column of the array must have the same number of columns.

For convenience a number of special routines (o12, o21, o22, o13, ...) are provided to merge the matrices in their argument list.

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

Constructor Summary
Merge()
           
 
Method Summary
static Zmat o(Zmat[][] B)
          Merges the matrices in an array of Zmats
static Zmat o12(Zmat B00, Zmat B01)
          Merges its arguments to create the Zmat A = | B00 B01 |
static Zmat o13(Zmat B00, Zmat B01, Zmat B02)
          Merges its arguments to create the Zmat A = | B00 B01 B02 |
static Zmat o21(Zmat B00, Zmat B10)
          Merges its arguments to create the Zmat A = | B00 | | B10 |
static Zmat o22(Zmat B00, Zmat B01, Zmat B10, Zmat B11)
          Merges its arguments to create the matrix A = | B00 B01| | B10 B11|
static Zmat o23(Zmat B00, Zmat B01, Zmat B02, Zmat B10, Zmat B11, Zmat B12)
          Merges its arguments to create the Zmat A = | B00 B01 B02 | | B10 B11 B12 |
static Zmat o31(Zmat B00, Zmat B10, Zmat B20)
          Merges its arguments to create the Zmat A = | B00 | | B10 | | B20 |
static Zmat o32(Zmat B00, Zmat B01, Zmat B10, Zmat B11, Zmat B20, Zmat B21)
          Merges its arguments to create the Zmat A = | B00 B01 | | B10 B11 | | B20 B21 |
static Zmat o33(Zmat B00, Zmat B01, Zmat B02, Zmat B10, Zmat B11, Zmat B12, Zmat B20, Zmat B21, Zmat B22)
          Merges its arguments to create the Zmat A = | B00 B01 B02 | | B10 B11 B12 | | B20 B21 B22 |
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Merge

public Merge()
Method Detail

o

public static Zmat o(Zmat[][] B)
              throws JampackException
Merges the matrices in an array of Zmats

Parameters:
B[][] - The array of Zmats
Returns:
The merged Zmat
Throws:
JampackException - Thrown if there is a nonconformity.

o12

public static Zmat o12(Zmat B00,
                       Zmat B01)
                throws JampackException
Merges its arguments to create the Zmat
    A = | B00 B01 |

Parameters:
Bij - The Zmats to be merged
Returns:
The composite Zmat A
Throws:
JampackException - Thrown if there is a nonconformity.

o21

public static Zmat o21(Zmat B00,
                       Zmat B10)
                throws JampackException
Merges its arguments to create the Zmat
    A = | B00 |
        | B10 |

Parameters:
Bij - The Zmats to be merged
Returns:
The composite Zmat A
Throws:
JampackException - Thrown if there is a nonconformity.

o22

public static Zmat o22(Zmat B00,
                       Zmat B01,
                       Zmat B10,
                       Zmat B11)
                throws JampackException
Merges its arguments to create the matrix
    A = | B00 B01|
        | B10 B11|

Parameters:
Bij - The Zmats to be merged
Returns:
The composite Zmat A
Throws:
JampackException - Thrown if there is a nonconformity.

o13

public static Zmat o13(Zmat B00,
                       Zmat B01,
                       Zmat B02)
                throws JampackException
Merges its arguments to create the Zmat
    A = | B00 B01 B02 |

Parameters:
Bij - The Zmats to be merged
Returns:
The composite Zmat A
Throws:
JampackException - Thrown if there is a nonconformity.

o23

public static Zmat o23(Zmat B00,
                       Zmat B01,
                       Zmat B02,
                       Zmat B10,
                       Zmat B11,
                       Zmat B12)
                throws JampackException
Merges its arguments to create the Zmat
    A = | B00 B01 B02 |
        | B10 B11 B12 |

Parameters:
Bij - The Zmats to be merged
Returns:
The composite Zmat A
Throws:
JampackException - Thown if there is a nonconformity.

o31

public static Zmat o31(Zmat B00,
                       Zmat B10,
                       Zmat B20)
                throws JampackException
Merges its arguments to create the Zmat
    A = | B00 |
        | B10 |
        | B20 |

Parameters:
Bij - The Zmats to be merged
Returns:
The composite Zmat A
Throws:
JampackException - Thrown if there is a nonconformity.

o32

public static Zmat o32(Zmat B00,
                       Zmat B01,
                       Zmat B10,
                       Zmat B11,
                       Zmat B20,
                       Zmat B21)
                throws JampackException
Merges its arguments to create the Zmat
    A = | B00 B01 |
        | B10 B11 |
        | B20 B21 |

Parameters:
Bij - The Zmats to be merged
Returns:
The composite Zmat A
Throws:
JampackException - Thrown if there is a nonconformity.

o33

public static Zmat o33(Zmat B00,
                       Zmat B01,
                       Zmat B02,
                       Zmat B10,
                       Zmat B11,
                       Zmat B12,
                       Zmat B20,
                       Zmat B21,
                       Zmat B22)
                throws JampackException
Merges its arguments to create the Zmat
    A = | B00 B01 B02 |
        | B10 B11 B12 |
        | B20 B21 B22 |

Parameters:
Bij - The Zmats to be merged
Returns:
The composite Zmat A
Throws:
JampackException - Thrown if there is a nonconformity.

FOOTER

BOTTOM