Add lalib.domains.Domain
- this class models domains from linear algebra
and is needed for the `Vector` class to be created
- `Domain` wraps Python's built-in `frozenset` type
+ they must contain at least one label
+ as a convenience, so-called canonical `Domain`s
(i.e., with labels `0`, `1`, ...) can be created
by passing in a positive `int`eger to `Domain()`
- the `Domain.is_canonical` property indicates
what kind a `Domain` is
- add unit tests for the class
- add extensive documentation for the class
This commit is contained in:
parent
9308633ded
commit
4a5e316d0c
3 changed files with 357 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ import xdoctest
|
|||
"module",
|
||||
[
|
||||
"lalib",
|
||||
"lalib.domains",
|
||||
"lalib.elements",
|
||||
"lalib.elements.galois",
|
||||
"lalib.fields",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue