Matrices / Reference
alerta.matrix.is_symmetric
TradingView-compatible spelling: matrix.is_symmetric, runs without warnings
Returns true if matrix equals its transpose.
alerta.matrix.is_symmetric(id) → boolParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | string | Yes | — | Matrix ID. |
Returns
boolExample
alerta.matrix.is_symmetric
m = matrix.new(2, 2, 0)matrix.set(m, 0, 0, 1)matrix.set(m, 0, 1, 2)matrix.set(m, 1, 0, 2)matrix.set(m, 1, 1, 1)plot(matrix.is_symmetric(m) ? 1 : 0, { title: "sym", pane: "oscillator" })Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.