Skip to main content

math:scale (field)

Version: 0.0.0

Description

Scales a field by a constant factor. This factor can be a scalar or a vector, 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
fieldfield, fields_containerfield or fields container with only one field is expected
Pin 1
Required
weightsdouble, field, vector<double>Double/Field/Vector of doubles. 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 0fieldfield

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.
permissiveboolfalseIf this option is set to true, warning checks (like unit or data sizes) won't be done.

Scripting

Category: math

Plugin: core

Scripting name: None

Full name: None

Internal name: scale

License: None

Changelog

  • Version 0.0.0: Initial release.