base
base
¶
Module contains base class for creating Gilbert algorithm backends (concrete implementations) and exceptions which are expected to be raised from backends.
BackendBase
¶
Gilbert algorithm backend (implementation).
Source code in cssfinder/algorithm/backend/base.py
set_symmetries
¶
Set symmetries to use during calculations.
This operation may involve type conversion and copying of symmetries, therefore if may be slow and should should be done only once.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
symmetries |
list[list[NDArray[complex128]]]
|
Array of symmetries. |
required |
Source code in cssfinder/algorithm/backend/base.py
set_projection
¶
Set projection to use during calculations.
This operation may involve type conversion and copying of symmetries, therefore if may be slow and should should be done only once.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
projection |
NDArray[complex128]
|
Projection matrix. |
required |
Source code in cssfinder/algorithm/backend/base.py
get_state
¶
get_corrections
¶
Return list of all corrections found during optimization.
get_corrections_count
¶
run_epoch
¶
Run sequence of iterations without stopping to check any stop conditions.