Skip to main content

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

InputNameExpected type(s)Description
Pin 0
Required
fields_containerfields_containerfields container to be scaled
Pin 1
Required
weightsdouble, field, vector<double>, fields_containerDouble/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 2booleanboolDefault is false. If set to true, output of scale is made dimensionless
Pin 3algorithmint32Default is 0 use mkl. If set to 1, don't

Outputs

OutputNameExpected type(s)Description
Pin 0fields_containerfields_container

Configurations

NameExpected type(s)Default valueDescription
mutexboolfalseIf this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.
num_threadsint320Number of threads to use to run in parallel
permissiveboolfalseIf this option is set to true, warning checks (like unit or data sizes) won't be done.
run_in_parallelbooltrueLoops 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.