I am writing a procedure in Maple for doing some optimization. Really now I want to ask Maple whether the Matrix is 2x2 or 3x3 or 4x4 and so on. And in each case of these matrices I am going to do something. Also, to know if the matrix is not sequare, i am going to do something else. I know that the command Dimension(A) gives you the dimension of the matrix, but I am not sure if it is the needed command to be used, and if it is so, how to use it?
Can any one help me in this issue?