Ask Your Question

Revision history [back]

use setTo and range :

my_matrix(Range(0,25),Range(0,1)).setTo(1);
my_matrix(Range(25,49),Range(1,2)).setTo(1);
my_matrix(Range(50,75),Range(2,3)).setTo(1);
my_matrix(Range(75,100),Range(3,4).setTo(1);

first is column is index 0