powered by
The function returns TRUE if the argument is a square matrix and FALSE otherwise.
is.square.matrix(x)
TRUE or FALSE
a matrix
Frederick Novomestky fnovomes@poly.edu
Bellman, R. (1987). Matrix Analysis, Second edition, Classics in Applied Mathematics, Society for Industrial and Applied Mathematics.
A <- matrix( seq( 1, 12, 1 ), nrow=3, byrow=TRUE ) is.square.matrix( A ) B <- matrix( seq( 1, 16, 1 ), nrow=4, byrow=TRUE ) is.square.matrix( B )
Run the code above in your browser using DataLab