Hi,
I'd like to have a virtual matrix, in reality relays will read these states and switch accordingly.
I think its a bit complicated the way I started. Is there a built in more elegant way doing this with c sharp?
I'd like a method like this:
var matrix = new matrix(4,4,)
matrix.switch(2,3)
and this generates this:
0 0 1 0
1 1 1 0
0 0 0 0
0 0 0 0
So I switch the 2nd row to the 3rd.
--
Or another:
switch(4, 1):
0 1 0 0
0 1 0 0
0 1 0 0
1 1 0 0
"swich 4th row to the 2nd column.
Thanks,
Zolee