Jampack
Class Block
- java.lang.Object
-
- Jampack.Block
-
public class Block extends java.lang.ObjectBlock contains a static method for partitioning a matrix. into a block matrix.
-
-
Constructor Summary
Constructors Constructor and Description Block()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static Zmat[][]o(Zmat A, int[] ii, int[] jj)This method takes a Zmat A and two arrays ii and jj of length m and n and produces an (m-1)x(n-1) block matrix Zmat[m-1][n-1], whose (i,j)-element is A.get(ii[i], ii[i+1]-1, jj[j], jj[j+1]-1).
-
-
-
Method Detail
-
o
public static Zmat[][] o(Zmat A, int[] ii, int[] jj) throws JampackException
This method takes a Zmat A and two arrays ii and jj of length m and n and produces an (m-1)x(n-1) block matrix Zmat[m-1][n-1], whose (i,j)-element is A.get(ii[i], ii[i+1]-1, jj[j], jj[j+1]-1). Throws a JampackException if- Parameters:
A- The matrix to be partitionedii[]- The row indices of the partitionjj[]- The column indices of the partition- Returns:
- The block Zmat
- Throws:
JampackException- Thrown if the submatrices are not conformable.
-
-
DMelt 3.0 © DataMelt by jWork.ORG