public static BlockMatrix64F wrap( double data[] , int numRows , int numCols , int blockLength ) { BlockMatrix64F ret = new BlockMatrix64F(); ret.data = data; ret.numRows = numRows; ret.numCols = numCols; ret.blockLength = blockLength; return ret; }
public static BlockMatrix64F wrap( double data[] , int numRows , int numCols , int blockLength ) { BlockMatrix64F ret = new BlockMatrix64F(); ret.data = data; ret.numRows = numRows; ret.numCols = numCols; ret.blockLength = blockLength; return ret; }
public static BlockMatrix64F createRandom( int numRows , int numCols , double min , double max , Random rand , int blockLength ) { BlockMatrix64F ret = new BlockMatrix64F(numRows,numCols,blockLength); RandomMatrices.setRandom(ret,min,max,rand); return ret; }
public static BlockMatrix64F createRandom( int numRows , int numCols , double min , double max , Random rand , int blockLength ) { BlockMatrix64F ret = new BlockMatrix64F(numRows,numCols,blockLength); RandomMatrices.setRandom(ret,min,max,rand); return ret; }
public static BlockMatrix64F createRandom( int numRows , int numCols , double min , double max , Random rand ) { BlockMatrix64F ret = new BlockMatrix64F(numRows,numCols); RandomMatrices.setRandom(ret,min,max,rand); return ret; }
public static BlockMatrix64F convert(DenseMatrix64F A ) { BlockMatrix64F ret = new BlockMatrix64F(A.numRows,A.numCols); convert(A,ret); return ret; }
public static BlockMatrix64F convert(DenseMatrix64F A , int blockLength ) { BlockMatrix64F ret = new BlockMatrix64F(A.numRows,A.numCols,blockLength); convert(A,ret); return ret; }
public static BlockMatrix64F convert(DenseMatrix64F A ) { BlockMatrix64F ret = new BlockMatrix64F(A.numRows,A.numCols); convert(A,ret); return ret; }
public BlockMatrix64F copy() { BlockMatrix64F A = new BlockMatrix64F(numRows,numCols,blockLength); A.set(this); return A; } }
public static BlockMatrix64F createRandom( int numRows , int numCols , double min , double max , Random rand , int blockLength ) { BlockMatrix64F ret = new BlockMatrix64F(numRows,numCols,blockLength); RandomMatrices.setRandom(ret,min,max,rand); return ret; }
public static BlockMatrix64F createRandom( int numRows , int numCols , double min , double max , Random rand ) { BlockMatrix64F ret = new BlockMatrix64F(numRows,numCols); RandomMatrices.setRandom(ret,min,max,rand); return ret; }
public static BlockMatrix64F convert(DenseMatrix64F A ) { BlockMatrix64F ret = new BlockMatrix64F(A.numRows,A.numCols); convert(A,ret); return ret; }
public static BlockMatrix64F createRandom( int numRows , int numCols , double min , double max , Random rand ) { BlockMatrix64F ret = new BlockMatrix64F(numRows,numCols); RandomMatrices.setRandom(ret,min,max,rand); return ret; }
public static BlockMatrix64F convert(DenseMatrix64F A , int blockLength ) { BlockMatrix64F ret = new BlockMatrix64F(A.numRows,A.numCols,blockLength); convert(A,ret); return ret; }
public static BlockMatrix64F convert(DenseMatrix64F A , int blockLength ) { BlockMatrix64F ret = new BlockMatrix64F(A.numRows,A.numCols,blockLength); convert(A,ret); return ret; }
public BlockMatrix64F copy() { BlockMatrix64F A = new BlockMatrix64F(numRows,numCols,blockLength); A.set(this); return A; } }
@Override public DenseMatrix64F getQ(DenseMatrix64F Q, boolean transposed) { if( Q == null ) { Q = new DenseMatrix64F(Ablock.numRows,Ablock.numCols); } BlockMatrix64F Qblock = new BlockMatrix64F(); Qblock.numRows = Q.numRows; Qblock.numCols = Q.numCols; Qblock.blockLength = blockLength; Qblock.data = Q.data; ((TridiagonalDecompositionHouseholder_B64)alg).getQ(Qblock,transposed); convertBlockToRow(Q.numRows,Q.numCols,Ablock.blockLength,Q.data); return Q; }
BlockMatrix64F matrix = new BlockMatrix64F(10, 10); matrix.set(0,1,10); matrix.set(1,0,20); matrix.set(1,1,30); System.out.println("Value="+matrix.get(1,0));
@Override public DenseMatrix64F getQ(DenseMatrix64F Q, boolean transposed) { if( Q == null ) { Q = new DenseMatrix64F(Ablock.numRows,Ablock.numCols); } BlockMatrix64F Qblock = new BlockMatrix64F(); Qblock.numRows = Q.numRows; Qblock.numCols = Q.numCols; Qblock.blockLength = blockLength; Qblock.data = Q.data; ((TridiagonalDecompositionHouseholder_B64)alg).getQ(Qblock,transposed); convertBlockToRow(Q.numRows,Q.numCols,Ablock.blockLength,Q.data); return Q; }
@Override public DenseMatrix64F getQ(DenseMatrix64F Q, boolean transposed) { if( Q == null ) { Q = new DenseMatrix64F(Ablock.numRows,Ablock.numCols); } BlockMatrix64F Qblock = new BlockMatrix64F(); Qblock.numRows = Q.numRows; Qblock.numCols = Q.numCols; Qblock.blockLength = blockLength; Qblock.data = Q.data; ((TridiagonalDecompositionHouseholder_B64)alg).getQ(Qblock,transposed); convertBlockToRow(Q.numRows,Q.numCols,Ablock.blockLength,Q.data); return Q; }