Lemonergy · Studio block

Signal width

Reports the declared number of elements in a signal, including all matrix dimensions.

Implementation ID
native-signal-width
Reviewed
2026-10-27

Behavior

y = product of all input dimensions; a scalar has width 1.

Interface

Signal width interfaceInputs or arguments on the left, observed outputs on the right. Conserving terminals appear below the component. The tables give units and behavior.Signal widthStudio blockin0out0
Original Lemonergy interface view. Lines identify ports; they are not a completed simulation circuit.
Ports and observed outputs
NameDirectionUnitMeaning
in0input1Signal; real 3 array.
out0output1Element count; real scalar.

Parameters

No configurable parameters for this component.

Equations and rules

  • y = product of all input dimensions; a scalar has width 1

Worked example

Signal width — worked example

Signal = [2,4,6]. Element count at 0 s = 3.

Open Studio example after release →
Numerical checks for the bundled synthetic example
OutputTime (s)Expected valueUnitAbsolute tolerance
Element count
out0
0311e-09

Explore the recorded outputs

Signal width recorded example

Signal width
Signal width against timeRecorded synthetic simulation values. Time in seconds; output in —.2.502.750.2530.53.250.753.51—Time (s)
Signal width: 3 — at 0 s

2 actual recorded samples. Lines are visual guides between samples. Synthetic example, not measured cell data.

Download the recorded samples (JSON) · Open this Studio example after release

Use in a workflow

Signal width — worked example

Reports the declared number of elements in a signal, including all matrix dimensions.

  1. Signal width: y = product of all input dimensions; a scalar has width 1.
    • Use the block reference for settings and connections.
    • Implementation tested locally; public release pending.
Open Studio example after release

Connected concepts

Limits and interpretation

  • Reports declared element count, not an inferred sample period or memory byte count.

Reference basis

This software operation is defined by its public contract and worked example; no external research result is claimed.

Implementation sources

This reference follows the public interface and locally verified numerical checks for an upcoming release.

Contract: Lemonergy Studio public contract · Verification record: verification-2026-10-27

  • docs/glossary/native-block-verification.json

This implementation and its workflow uses (JSON) · Knowledge graph (JSON-LD)