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
| Name | Direction | Unit | Meaning |
|---|---|---|---|
in0 | input | 1 | Signal; real 3 array. |
out0 | output | 1 | Element 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 →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
Element countout0 | 0 | 3 | 1 | 1e-09 |
Explore the recorded outputs
Signal width recorded example
Signal width2 actual recorded samples. Lines are visual guides between samples. Synthetic example, not measured cell data.
Read the selected signal as a table
| Time (s) | Value |
|---|
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.
- 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.
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)