@Override public BlockMatrix64F getT(BlockMatrix64F T) { if( T == null ) return this.T; T.set(this.T); return T; }
@Override public BlockMatrix64F getT(BlockMatrix64F T) { if( T == null ) return this.T; T.set(this.T); return T; }
@Override public BlockMatrix64F getT(BlockMatrix64F T) { if( T == null ) return this.T; T.set(this.T); return T; }
public BlockMatrix64F copy() { BlockMatrix64F A = new BlockMatrix64F(numRows,numCols,blockLength); A.set(this); return A; } }
public BlockMatrix64F copy() { BlockMatrix64F A = new BlockMatrix64F(numRows,numCols,blockLength); A.set(this); return A; } }
@Override public BlockMatrix64F getT(BlockMatrix64F T) { if( T == null ) { T = new BlockMatrix64F(A.numRows,A.numCols,A.blockLength); } else { if( T.numRows != A.numRows || T.numCols != A.numCols ) throw new IllegalArgumentException("T must have the same dimensions as the input matrix"); CommonOps.fill(T, 0); } T.set(0,0,A.data[0]); for( int i = 1; i < A.numRows; i++ ) { double d = A.get(i-1,i); T.set(i,i,A.get(i,i)); T.set(i-1,i,d); T.set(i,i-1,d); } return T; }
@Override public BlockMatrix64F getT(BlockMatrix64F T) { if( T == null ) { T = new BlockMatrix64F(A.numRows,A.numCols,A.blockLength); } else { if( T.numRows != A.numRows || T.numCols != A.numCols ) throw new IllegalArgumentException("T must have the same dimensions as the input matrix"); CommonOps.fill(T, 0); } T.set(0,0,A.data[0]); for( int i = 1; i < A.numRows; i++ ) { double d = A.get(i-1,i); T.set(i,i,A.get(i,i)); T.set(i-1,i,d); T.set(i,i-1,d); } return T; }
@Override public BlockMatrix64F getT(BlockMatrix64F T) { if( T == null ) { T = new BlockMatrix64F(A.numRows,A.numCols,A.blockLength); } else { if( T.numRows != A.numRows || T.numCols != A.numCols ) throw new IllegalArgumentException("T must have the same dimensions as the input matrix"); CommonOps.fill(T, 0); } T.set(0,0,A.data[0]); for( int i = 1; i < A.numRows; i++ ) { double d = A.get(i-1,i); T.set(i,i,A.get(i,i)); T.set(i-1,i,d); T.set(i,i-1,d); } return T; }