modelArrayConstructorDiagonal
Extends from Icons.TestCase.
Information
Tests that it's possible to construct a square matrix with elements of vector v on the diagonal and all other elements zero by using specialized array constructor function diagonal.Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real[3,3] | di | diagonal({1, 2, 3}) |