Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
pyMOR
pymor
Commits
0161a150
Commit
0161a150
authored
May 04, 2022
by
Patrick Buchfink
Browse files
Updated outdated documentation of check_symplecticity.
parent
53213788
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pymor/algorithms/symplectic.py
View file @
0161a150
...
...
@@ -118,14 +118,22 @@ class SymplecticBasis(BasicObject):
self
.
F
.
append
(
other
.
F
,
remove_from_other
)
def
check_symplecticity
(
self
,
offset
=
0
,
check_tol
=
1e-3
):
"""Check symplecticity
w.r.t. a given transposed s
ymplectic
inverse
.
"""Check symplecticity
of the |S
ymplectic
Basis|
.
Parameters
----------
offset
Used in iterative methods. Needs to be even.
Can be used to offset the check of symplecicity to the basis vectors with index bigger
than the offset. This is useful in iterative methods to avoid checking multiple times.
The offset needs to be even. The default value is 0, i.e. all basis vectors are checked
by default.
check_tol
tolerance for which method returns true.
tolerance for which an error is raised.
Raises
------
AccuracyError
Is raised when the symplecicity for some pair (e_i, f_i) exceeds check_tol.
"""
assert
offset
%
2
==
0
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment