quemb.shared.typingΒΆ
Define some types that do not fit into one particular module
In particular it enables barebone typechecking for the shape of numpy arrays
Inspired by https://stackoverflow.com/questions/75495212/type-hinting-numpy-arrays-and-batches
Note that most numpy functions return ndarray[Any, Any]
i.e. the type is mostly useful to document intent to the developer.
Module Attributes
Type annotation of a generic covariant type. |
|
Type annotation of a vector. |
|
Type annotation of a matrix. |
|
Type annotation of a tensor. |
|
Type annotation of a tensor. |
|
Type annotation of a tensor. |
|
Type annotation of a tensor. |
|
Type annotation of a tensor. |
|
Type annotation of a tensor. |
|
Type annotation for pathlike objects. |
|
Type annotation for dictionaries holding keyword arguments. |
|
A generic type variable, without any constraints. |
|
The index of an atomic orbital. |
|
The global index of an atomic orbital, i.e. not per fragment. |
|
The relative AO index. |
|
The relative AO index, relative to another fragment. |
|
The index of a Fragment. |
|
The index of a heavy atom, i.e. of a motif. |
|
In a given fragment, this is the index of a center. |
|
An edge is the complement of the set of centers in a fragment. |
|
In a given BE fragment, this is the origin of the remaining fragment after subsets have been removed. |