Skip to main content
Version: 0.0.0

Description

Computes the coefficients (=U*Sigma) and VT components from SVD.

Inputs

This table lists the input pins for this operator. Input pins define the data that the operator requires to perform its operation. Some inputs are required, while others are optional and provide additional configuration. Each parameter is detailed in the sections that follow the table.

field_contaner_to_compress (Pin 0)

Fields container with data to be compressed

scalar_int (Pin 1)

  • Required: No
  • Expected type(s): int32
Number of vectors (r) to keep for the future reconstraction of the matrix A, ex.A[m,n] = coef[m,r] * VT[r,n], where coef = U * Sigma

scalar_double (Pin 2)

  • Required: No
  • Expected type(s): double
Threshold (precision) as a double (Default : 1e-7). If both pin1 and pin2 are provided, choose the min r-vectors

boolean (Pin 3)

  • Required: No
  • Expected type(s): bool
Apply SVD on the initial data (Default : false), otherwise use reduced data (square matrix with the smallest dimensions).

Outputs

This table lists the output pins for this operator. Output pins provide the results of the operator’s computation and can be connected to inputs of other operators or retrieved for further processing. Each output is detailed in the sections that follow the table.

us_svd (Pin 0)

The output entity is a fields container (time dependant); it contains the product of two matrices, U and S, where A=U.S.Vt

vt_svd (Pin 1)

The output entity is a field container (space dependant), containing the Vt, where A=U.S.Vt

sigma (Pin 2)

The output entity is a field (or a field container if input fc contains several labels, where field contains results per label), containing singular (S) values of the input data, where A=U.S.Vt

Configurations

This operator supports configuration options that modify its behavior.

mutex

  • Expected type(s): bool
  • Default value: false
If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

num_threads

  • Expected type(s): int32
  • Default value: 0

run_in_parallel

  • Expected type(s): bool
  • Default value: true
Loops are allowed to run in parallel if the value of this config is set to true.

Scripting

This operator can be accessed through scripting interfaces using these identifiers. Category: compression Plugin: N/A Scripting name: apply_svd Full name: compression.apply_svd Internal name: svd_operator License: any_dpf_supported_increments

Examples

These examples demonstrate how to use this operator in different programming environments. Each example shows how to instantiate the operator, connect the required inputs, and retrieve the output.

Changelog

  • Version 0.0.0: Initial release.