You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Outputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="output_field"></pin-name></td><td><req-type typeName="(field)"></req-type></td><td><div class = "pin-des-text"><p>Scaled and rounded field</p>
15273
15273
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Configurations</h2><config-spec name="mutex" default="false" doc="If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads." types="bool" ></config-spec><h2 class="op-des-h2">Scripting</h2><scripting-part scripting_name="quantization" license="any_dpf_supported_increments" cat="compression" plugin="core" cpp-name="quantization"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New"}'></op-changelog></div><div class="operator" id="apply svd" scripting_name="apply_svd"plugin="core"cat="compression"><h1 class="op-des-h1">compression: apply svd</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>Computes the coefficients (=U*Sigma) and VT components from SVD.</p>
15274
-
</div></figure><div class="op-version">Version 0.0.0</div><h2 class="op-des-h2">Inputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="field_contaner_to_compress"></pin-name></td><td><req-type typeName="(fields_container)"></req-type></td><td><div class = "pin-des-text"><p>fields container to be compressed</p>
15275
-
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="1" ellipsis = "false"></pin-number></td><td><pin-name name="scalar_int"></pin-name></td><td><req-type typeName="(int32)"></req-type></td><td><div class = "pin-des-text"><p>number of vectors (r) to keep for the future reconstraction of the matrix A, ex.A[m,n]=coef[m,r]<em>VT[r,n], where coef=U</em>Sigma</p>
15276
-
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="2" ellipsis = "false"></pin-number></td><td><pin-name name="scalar_double"></pin-name></td><td><req-type typeName="(double)"></req-type></td><td><div class = "pin-des-text"><p>threshold (precision) as a double, default value is 1e-7. If both pin1 and pin2 are provided, choose the min r-vectors</p>
15277
-
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="3" ellipsis = "false"></pin-number></td><td><pin-name name="boolean"></pin-name></td><td><req-type typeName="(bool)"></req-type></td><td><div class = "pin-des-text"><p>apply svd on the initial data (Default : false), otherwise use reduced data (square matrix with the smallest dimensions).</p>
15278
-
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Outputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="us_svd"></pin-name></td><td><req-type typeName="(fields_container)"></req-type></td><td><div class = "pin-des-text"><p>the output entity is a field container (time dependant); it contains the multiplication of two matrices, U and S, where A=U.S.Vt</p>
15279
-
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="1" ellipsis = "false"></pin-number></td><td><pin-name name="vt_svd"></pin-name></td><td><req-type typeName="(fields_container)"></req-type></td><td><div class = "pin-des-text"><p>the output entity is a field container (space dependant), containing the Vt, where A=U.S.Vt</p>
15280
-
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="2" ellipsis = "false"></pin-number></td><td><pin-name name="sigma"></pin-name></td><td><req-type typeName="(field | fields_container)"></req-type></td><td><div class = "pin-des-text"><p>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</p>
15281
-
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Configurations</h2><config-spec name="mutex" default="false" doc="If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads." types="bool" ></config-spec><config-spec name="num_threads" default="0" doc="Number of threads to use to run in parallel" types="int32" ></config-spec><config-spec name="run_in_parallel" default="true" doc="Loops are allowed to run in parallel if the value of this config is set to true." types="bool" ></config-spec><h2 class="op-des-h2">Scripting</h2><scripting-part scripting_name="apply_svd" license="any_dpf_supported_increments" cat="compression" plugin="core" cpp-name="svd_operator"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New"}'></op-changelog></div><div class="operator" id="zfp decompression" scripting_name="zfp_decompress"plugin="core"cat="compression"><h1 class="op-des-h1">compression: zfp decompression</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>zfp decompression using the information about compression written into the properties of the field(s)</p>
15274
+
</div></figure><div class="op-version">Version 0.0.0</div><h2 class="op-des-h2">Inputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="field_contaner_to_compress"></pin-name></td><td><req-type typeName="(fields_container)"></req-type></td><td><div class = "pin-des-text"><p>Fields container with data to be compressed</p>
15275
+
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="1" ellipsis = "false"></pin-number-optional></td><td><pin-name name="scalar_int"></pin-name></td><td><req-type typeName="(int32)"></req-type></td><td><div class = "pin-des-text"><p>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</p>
15276
+
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="2" ellipsis = "false"></pin-number-optional></td><td><pin-name name="scalar_double"></pin-name></td><td><req-type typeName="(double)"></req-type></td><td><div class = "pin-des-text"><p>Threshold (precision) as a double (Default : 1e-7). If both pin1 and pin2 are provided, choose the min r-vectors</p>
15277
+
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number-optional n="3" ellipsis = "false"></pin-number-optional></td><td><pin-name name="boolean"></pin-name></td><td><req-type typeName="(bool)"></req-type></td><td><div class = "pin-des-text"><p>Apply SVD on the initial data (Default : false), otherwise use reduced data (square matrix with the smallest dimensions).</p>
15278
+
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Outputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="us_svd"></pin-name></td><td><req-type typeName="(fields_container)"></req-type></td><td><div class = "pin-des-text"><p>The output entity is a fields container (time dependant); it contains the product of two matrices, U and S, where A=U.S.Vt</p>
15279
+
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="1" ellipsis = "false"></pin-number></td><td><pin-name name="vt_svd"></pin-name></td><td><req-type typeName="(fields_container)"></req-type></td><td><div class = "pin-des-text"><p>The output entity is a field container (space dependant), containing the Vt, where A=U.S.Vt</p>
15280
+
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="2" ellipsis = "false"></pin-number></td><td><pin-name name="sigma"></pin-name></td><td><req-type typeName="(field | fields_container)"></req-type></td><td><div class = "pin-des-text"><p>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</p>
15281
+
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Configurations</h2><config-spec name="mutex" default="false" doc="If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads." types="bool" ></config-spec><config-spec name="num_threads" default="0" types="int32" ></config-spec><config-spec name="run_in_parallel" default="true" doc="Loops are allowed to run in parallel if the value of this config is set to true." types="bool" ></config-spec><h2 class="op-des-h2">Scripting</h2><scripting-part scripting_name="apply_svd" license="any_dpf_supported_increments" cat="compression" plugin="core" cpp-name="svd_operator"></scripting-part><h2 class="op-des-h2">Changelog</h2><op-changelog content='{"0.0.0":"New"}'></op-changelog></div><div class="operator" id="zfp decompression" scripting_name="zfp_decompress"plugin="core"cat="compression"><h1 class="op-des-h1">compression: zfp decompression</h1><figure class="figure-op-des"> <figcaption > Description </figcaption><div class = "figure-op-des-text"><p>zfp decompression using the information about compression written into the properties of the field(s)</p>
15282
15282
</div></figure><div class="op-version">Version 0.0.0</div><h2 class="op-des-h2">Inputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="dataIn"></pin-name></td><td><req-type typeName="(custom_type_fields_container)"></req-type></td><td><div class = "pin-des-text"><p>custom type field container from zfp_compression operator to decompress</p>
15283
15283
</div></td></tr></tbody></table></div><h2 class="op-des-h2">Outputs</h2><div><table class="pin-box"><tbody><tr><td><pin-number n="0" ellipsis = "false"></pin-number></td><td><pin-name name="dataOut"></pin-name></td><td><req-type typeName="(field | fields_container)"></req-type></td><td><div class = "pin-des-text"><p>the output entity is a field or a fields container; it contains decompressed data</p>
15284
15284
</div></td></tr></tbody></table><table class="pin-box"><tbody><tr><td><pin-number n="1" ellipsis = "false"></pin-number></td><td><pin-name name="decompress_speed"></pin-name></td><td><req-type typeName="(double)"></req-type></td><td><div class = "pin-des-text"><p>the output entity is a double, containing decompression speed (mb/sec)</p>
Copy file name to clipboardExpand all lines: src/ansys/dpf/core/operators/compression/apply_svd.py
+26-26Lines changed: 26 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -23,22 +23,22 @@ class apply_svd(Operator):
23
23
Parameters
24
24
----------
25
25
field_contaner_to_compress: FieldsContainer
26
-
fields container to be compressed
27
-
scalar_int: int
28
-
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
29
-
scalar_double: float
30
-
threshold (precision) as a double, default value is 1e-7. If both pin1 and pin2 are provided, choose the min r-vectors
31
-
boolean: bool
32
-
apply svd on the initial data (Default : false), otherwise use reduced data (square matrix with the smallest dimensions).
26
+
Fields container with data to be compressed
27
+
scalar_int: int, optional
28
+
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
29
+
scalar_double: float, optional
30
+
Threshold (precision) as a double (Default : 1e-7). If both pin1 and pin2 are provided, choose the min r-vectors
31
+
boolean: bool, optional
32
+
Apply SVD on the initial data (Default : false), otherwise use reduced data (square matrix with the smallest dimensions).
33
33
34
34
Returns
35
35
-------
36
36
us_svd: FieldsContainer
37
-
the output entity is a field container (time dependant); it contains the multiplication of two matrices, U and S, where A=U.S.Vt
37
+
The output entity is a fields container (time dependant); it contains the product of two matrices, U and S, where A=U.S.Vt
38
38
vt_svd: FieldsContainer
39
-
the output entity is a field container (space dependant), containing the Vt, where A=U.S.Vt
39
+
The output entity is a field container (space dependant), containing the Vt, where A=U.S.Vt
40
40
sigma: Field or FieldsContainer
41
-
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
41
+
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
document=r"""fields container to be compressed""",
106
+
document=r"""Fields container with data to be compressed""",
107
107
),
108
108
1: PinSpecification(
109
109
name="scalar_int",
110
110
type_names=["int32"],
111
-
optional=False,
112
-
document=r"""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""",
111
+
optional=True,
112
+
document=r"""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""",
113
113
),
114
114
2: PinSpecification(
115
115
name="scalar_double",
116
116
type_names=["double"],
117
-
optional=False,
118
-
document=r"""threshold (precision) as a double, default value is 1e-7. If both pin1 and pin2 are provided, choose the min r-vectors""",
117
+
optional=True,
118
+
document=r"""Threshold (precision) as a double (Default : 1e-7). If both pin1 and pin2 are provided, choose the min r-vectors""",
119
119
),
120
120
3: PinSpecification(
121
121
name="boolean",
122
122
type_names=["bool"],
123
-
optional=False,
124
-
document=r"""apply svd on the initial data (Default : false), otherwise use reduced data (square matrix with the smallest dimensions).""",
123
+
optional=True,
124
+
document=r"""Apply SVD on the initial data (Default : false), otherwise use reduced data (square matrix with the smallest dimensions).""",
125
125
),
126
126
},
127
127
map_output_pin_spec={
128
128
0: PinSpecification(
129
129
name="us_svd",
130
130
type_names=["fields_container"],
131
131
optional=False,
132
-
document=r"""the output entity is a field container (time dependant); it contains the multiplication of two matrices, U and S, where A=U.S.Vt""",
132
+
document=r"""The output entity is a fields container (time dependant); it contains the product of two matrices, U and S, where A=U.S.Vt""",
133
133
),
134
134
1: PinSpecification(
135
135
name="vt_svd",
136
136
type_names=["fields_container"],
137
137
optional=False,
138
-
document=r"""the output entity is a field container (space dependant), containing the Vt, where A=U.S.Vt""",
138
+
document=r"""The output entity is a field container (space dependant), containing the Vt, where A=U.S.Vt""",
139
139
),
140
140
2: PinSpecification(
141
141
name="sigma",
142
142
type_names=["field", "fields_container"],
143
143
optional=False,
144
-
document=r"""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""",
144
+
document=r"""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""",
0 commit comments