as I wrote to Tangara in one of my replies:
"No, all this is not necessary, your way is as good as mine, but I find my way more comfortable."
As I said, I hate nested index loops, like I hate incomprehensible cli-commands, so I was only showing a way that I find easy.
And your comment about optimizing made me have another think. Indeed I do some redundant checking. I have in my Matrix-class a method 'Matrix getMinorMatrix(int a, int skipRow, int skipCol), and so to eliminate unnecessary checking, I could have this method:
But admitted, that tends to pure hobbyism!
I've never been involved as a professional programmer, albeit I used things like Basic, C and Java at home, and Excel, VBA and R in my job. So I am not hindered by any professional standard there may be, I am as free as a bird to follow any convention I like, even self-made conventions!