tf.times — Multiply SISO tf models or scalar gains with elementwise operator syntax.
Multiply SISO tf models or scalar gains with elementwise operator syntax.
Syntax
sys = tf.times(lhs, rhs)Inputs
lhs- Type
Any- Required
- Yes
- Default
- —
- Description
- SISO tf model or scalar gain; at least one operand is a tf model in operator syntax.
rhs- Type
Any- Required
- Yes
- Default
- —
- Description
- SISO tf model or scalar gain.
Returns
sys- Type
Any- Description
- New SISO transfer-function model.
Errors
RunMat:tf:InvalidArgument- When
- An operand is neither a tf model nor an admissible scalar.
- Message
tf: invalid argument
RunMat:tf:InvalidModel- When
- A required tf receiver is not a tf model object.
- Message
tf: invalid model
RunMat:tf:UnsupportedModel- When
- The model class or property representation is unsupported.
- Message
tf: unsupported model
SISO model arithmetic
These identities are tf class operator methods, reached through ordinary MATLAB-syntax operators on tf objects. They are not standalone top-level functions. A binary operation accepts another SISO tf model or a scalar gain; both model operands must have matching sample times and polynomial variables. Elementwise and matrix spellings share the same SISO operation in this implementation.
Results are new host tf values. Polynomial coefficient arrays remain double or complex-double, while sample time and variable metadata come from the input model. Nonzero input/output delay arithmetic, MIMO models, and incompatible sample times or variables are rejected.
Precision and execution
Typed integer scalar gains are a RunMat-mode extension. They convert to double for polynomial arithmetic, so wide integer gains can round; this differs from checked integer coefficients stored in a tf model. Typed-integer or logical coefficients and typed-integer Ts assigned after construction are gated again when a method admits the model, with exact conversion for integer model properties. Integer-valued power exponents are decoded exactly as signed 64-bit counts; zero returns a unity model and negative counts use a reciprocal. Coefficient arithmetic is host-side; resident scalar gains and model properties may gather through their owning provider. The method call can suspend and terminates numeric fusion.
Example
SISO transfer-function operator
g = tf(2,1); h = g .* tf(3,1);Using tf.times with coding agents
Open a RunMat example with live inputs, then ask the agent to explain how tf.times changes the result.
Run a small tf.times example, explain the result, then change one input and compare the output.
FAQ
Are these top-level functions?⌄
No. They are tf operator methods reached by MATLAB-syntax arithmetic on a tf model.
Are MIMO transfer functions supported?⌄
No. These methods currently operate on SISO transfer functions and scalar gains.
Related Control functions
Source you can read
Every RunMat function's source is public. Read exactly how tf.times is executed, line by line, in Rust.
- View the source for tf.times in Rust on GitHub
- Learn how the RunMat runtime works
- Found a bug? Open an issue with a minimal reproduction.
About RunMat
RunMat is a runtime that executes MATLAB-syntax code fast on any GPU. The runtime is free for individuals, including freelancers; students and faculty at an academic institution, for teaching or research there; contributors to an open-source project, for work on that project; organizations with 250 or fewer people and US$10M or less in annual revenue; and anyone, for non-production use. See runmat.com/license.
- RunMat automatically optimizes your math for GPU execution on Apple, Nvidia, and AMD hardware. No code changes needed. Simulations that took hours now take minutes.
- Start running code in seconds. RunMat runs in the browser, on the desktop, or from the CLI. No license server, no IT ticket.