Skip to content

DoubleMatrixParameter

Parameter storing a 2D matrix of doubles.

### Python API Matrix parameters are read/written as Python lists of lists. The string syntax also remains supported: rows are separated with ";" and columns with spaces.

```python from aesim.simba import DesignExamples design = DesignExamples.Interleaved_buck() L1 = design.Circuit.GetDeviceByName"L1"

L1.Inductance = "[100u -80u ; -80u 100u]" # string syntax units supported m = L1.Inductance # -> [[...], [...]]

m[0][1] = -90e-6 m[1][0] = -90e-6 L1.Inductance = m # re-assign to apply changes

L1.Inductance = [[100e-6, -90e-6], [-90e-6, 100e-6]] # direct list assignment ```

!!! warning "Important" In-place edits like `L1.Inductance[0][0] = ...` do not update the parameter. Always re-assign the full list to persist changes.