constant_stf
Graph.constant_stf(constant, batch_dimension_count=0)
Create a constant sampleable tensor-valued function of time.
Parameters
- constant (number or np.ndarray or Tensor) – The constant value of the function. To create a batch of constant functions of shape , provide this constant parameter as an object of shape .
- batch_dimension_count (int , optional) – The number of batch dimensions, , in constant. If provided, the first dimensions of constant are considered batch dimensions. Defaults to 0, which corresponds to no batch.
Returns
An Stf representing the constant function for all time (or a batch of functions, if you provide batch_dimension_count).
Return type
SEE ALSO
Graph.constant_pwc
: Corresponding operation for Pwcs.
Graph.constant_stf_operator
: Create a constant sampleable function from operators.
Graph.identity_stf
: Create an Stf representing the identity function.
Notes
For more information on Stf nodes see the Working with time-dependent functions in Boulder Opal topic.