matrix.is_symmetric() - Pine Script Function
matrix.is_symmetric()
Section titled “matrix.is_symmetric()”Overview
Section titled “Overview”The function determines if a square matrix is symmetric (elements are symmetric with respect to the main diagonal).
Syntax
Section titled “Syntax”matrix.is_symmetric(id) → series boolParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | matrix<int/float> | Matrix object to test. |
Returns
Section titled “Returns”Returns true if the id matrix is symmetric, false otherwise.
Remarks
Section titled “Remarks”- Returns false with non-square matrices.