math:scale fields container
Version: 0.0.0
Description
Scales a fields container by a constant factor. This factor can be a scalar, a vector a field, a fields container, where each value of the vector represents a scaler per component. Number of the components are corresponding to the input field dimensionality
Inputs
| Input | Name | Expected type(s) | Description |
|---|---|---|---|
| Pin 0 Required | fields_container | fields_container | fields container to be scaled |
| Pin 1 Required | weights | double, field, vector<double>, fields_container | Double/Vector of doubles/Field/FieldsContainer. When scoped on overall, same value(s) applied on all the data, when scoped elsewhere, corresponding values will be multiplied due to the scoping |
| Pin 2 | boolean | bool | Default is false. If set to true, output of scale is made dimensionless |
| Pin 3 | algorithm | int32 | Default is 0 use mkl. If set to 1, don't |
Outputs
| Output | Name | Expected type(s) | Description |
|---|---|---|---|
| Pin 0 | fields_container | fields_container |
Configurations
| Name | Expected type(s) | Default value | Description |
|---|---|---|---|
| mutex | bool | false | If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads. |
| num_threads | int32 | 0 | Number of threads to use to run in parallel |
| permissive | bool | false | If this option is set to true, warning checks (like unit or data sizes) won't be done. |
| run_in_parallel | bool | true | Loops are allowed to run in parallel if the value of this config is set to true. |
Scripting
Category: math
Plugin: core
Scripting name: None
Full name: None
Internal name: scale_fc
License: None
Changelog
- Version 0.0.0: Initial release.