in R
, I can use negative indices to construct a minor matrix easily, like:
> M <- matrix(1:9, nr = 3L);
> M
[,1] [,2] [,3]
[1,] 1 4 7
[2,] 2 5 8
[3,] 3 6 9
> M[-1L, -2L];
[,1] [,2]
[1,] 2 8
[2,] 3 9
however, how to construct a minor matrix in Julia (I cannot find one in docs)? More generally, how to exclude some elements in indexing of Julia
(negative indexing is used for counting from the end)?
Thanks!