java - Constructing a matrix of submatrices in JBLAS -


using jblas, i've defined following matrices:

doublematrix = doublematrix.ones(5,5); doublematrix o = doublematrix.zeros(5,5);  doublematrix b = new doublematrix(new double[][]             { {1,1,0,0,0}, {1,1,1,0,0}, {0,1,1,1,0}, {0,0,1,1,1}, {0,0,0,1,1} }); 

i want construct matrix a composed of i, o, , b matrices such a has following form:

a = [ b o o o;        b o o;        o b o;        o o b i;        o o o b ]; 

there functions in jblas support horizontal , vertical concatenation, wonder if there cleaner way in construct a doesn't involve calling these functions each submatrix. appreciated, , again!


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -