Skip to content

Commit 39559a0

Browse files
update generated code
1 parent 28c1d07 commit 39559a0

File tree

4 files changed

+34
-34
lines changed

4 files changed

+34
-34
lines changed

doc/source/_static/dpf_operators.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15271,14 +15271,14 @@ <h2 class="h2-main">Configurating operators</h2>
1527115271
</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="threshold"></pin-name></td><td><req-type typeName="(double)"></req-type></td><td><div class = "pin-des-text"><p>Threshold (precision) desired.</p>
1527215272
</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>
1527315273
</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>
1528215282
</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>
1528315283
</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>
1528415284
</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>

src/ansys/dpf/core/operators/compression/apply_svd.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,22 @@ class apply_svd(Operator):
2323
Parameters
2424
----------
2525
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).
3333
3434
Returns
3535
-------
3636
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
3838
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
4040
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
4242
4343
Examples
4444
--------
@@ -103,45 +103,45 @@ def _spec() -> Specification:
103103
name="field_contaner_to_compress",
104104
type_names=["fields_container"],
105105
optional=False,
106-
document=r"""fields container to be compressed""",
106+
document=r"""Fields container with data to be compressed""",
107107
),
108108
1: PinSpecification(
109109
name="scalar_int",
110110
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""",
113113
),
114114
2: PinSpecification(
115115
name="scalar_double",
116116
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""",
119119
),
120120
3: PinSpecification(
121121
name="boolean",
122122
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).""",
125125
),
126126
},
127127
map_output_pin_spec={
128128
0: PinSpecification(
129129
name="us_svd",
130130
type_names=["fields_container"],
131131
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""",
133133
),
134134
1: PinSpecification(
135135
name="vt_svd",
136136
type_names=["fields_container"],
137137
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""",
139139
),
140140
2: PinSpecification(
141141
name="sigma",
142142
type_names=["field", "fields_container"],
143143
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""",
145145
),
146146
},
147147
)
@@ -226,7 +226,7 @@ def __init__(self, op: Operator):
226226
def field_contaner_to_compress(self) -> Input:
227227
r"""Allows to connect field_contaner_to_compress input to the operator.
228228
229-
fields container to be compressed
229+
Fields container with data to be compressed
230230
231231
Returns
232232
-------
@@ -247,7 +247,7 @@ def field_contaner_to_compress(self) -> Input:
247247
def scalar_int(self) -> Input:
248248
r"""Allows to connect scalar_int input to the operator.
249249
250-
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
250+
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
251251
252252
Returns
253253
-------
@@ -268,7 +268,7 @@ def scalar_int(self) -> Input:
268268
def scalar_double(self) -> Input:
269269
r"""Allows to connect scalar_double input to the operator.
270270
271-
threshold (precision) as a double, default value is 1e-7. If both pin1 and pin2 are provided, choose the min r-vectors
271+
Threshold (precision) as a double (Default : 1e-7). If both pin1 and pin2 are provided, choose the min r-vectors
272272
273273
Returns
274274
-------
@@ -289,7 +289,7 @@ def scalar_double(self) -> Input:
289289
def boolean(self) -> Input:
290290
r"""Allows to connect boolean input to the operator.
291291
292-
apply svd on the initial data (Default : false), otherwise use reduced data (square matrix with the smallest dimensions).
292+
Apply SVD on the initial data (Default : false), otherwise use reduced data (square matrix with the smallest dimensions).
293293
294294
Returns
295295
-------
@@ -346,7 +346,7 @@ def __init__(self, op: Operator):
346346
def us_svd(self) -> Output:
347347
r"""Allows to get us_svd output of the operator
348348
349-
the output entity is a field container (time dependant); it contains the multiplication of two matrices, U and S, where A=U.S.Vt
349+
The output entity is a fields container (time dependant); it contains the product of two matrices, U and S, where A=U.S.Vt
350350
351351
Returns
352352
-------
@@ -366,7 +366,7 @@ def us_svd(self) -> Output:
366366
def vt_svd(self) -> Output:
367367
r"""Allows to get vt_svd output of the operator
368368
369-
the output entity is a field container (space dependant), containing the Vt, where A=U.S.Vt
369+
The output entity is a field container (space dependant), containing the Vt, where A=U.S.Vt
370370
371371
Returns
372372
-------
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)