matrix.is_square() - Pine Script Function
matrix.is_square()
Section titled “matrix.is_square()”Overview
Section titled “Overview”The function determines if the matrix is square (it has the same number of rows and columns).
Syntax
Section titled “Syntax”matrix.is_square(id) → series boolParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | any matrix type | Matrix object to test. |
Returns
Section titled “Returns”Returns true if the id matrix is square, false otherwise.