Description Usage Arguments Value
is_square(x) checks if a scalar value is a perfect square.
is_square_mat(x) checks if a matrix x is square (n by n).
is_square_vec(x) and is_square_tri(x) work on vectors.
is_square_vec(x) tests if the vector could be from/formed into a vectorized square matrix (i.e., all elements),
whereas is_square_tri(x) tests if the vector could be from a triangle of a square matrix (using quadratic formula).
1 2 3 4 5 6 7 | is_square(x)
is_square_mat(x)
is_square_vec(x)
is_square_tri(x)
|
x |
vector or matrix |
boolean
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.