lib.survey_selection.base.BaseRegularMatrix¶
- class lib.survey_selection.base.BaseRegularMatrix¶
Bases:
lib.survey_selection.base.BaseMatrixBase class to represent a linear transform of the theory model, with same array size for each input and output projections.
- x¶
x-coordinates, same for each input and output projections.
- Type
array
Methods
Apply transform to input array.
Return shallow copy of
self.deepcopyInstantiate and initalize class with state dictionary.
is_mpi_broadcastis_mpi_gatheredis_mpi_rootis_mpi_scatteredLoad class in numpy binary format from disk.
If different formats are possible, this method should between them based on file name extension.
log_criticallog_debuglog_errorlog_infolog_warningPropose input and output projection names given proposed input projection names
projsin.Save class to disk.
If different formats are possible, this method should between them based on file name extension.
Attributes
basisloggerMPI attributes
mpicommmpirootmpistateregularinregularoutInput x-coordinates.
Output x-coordinates.
- compute(array)¶
Apply transform to input array.
- copy()¶
Return shallow copy of
self.
- classmethod from_state(state, mpiroot=0, mpicomm=None)¶
Instantiate and initalize class with state dictionary.
- classmethod load(filename, mpiroot=0, mpicomm=None)¶
Load class in numpy binary format from disk. If the loaded state contains
__class__and that exists incls._registry, return instance ofcls._registry[__class__](instead ofcls).
- load_auto(*args, **kwargs)¶
If different formats are possible, this method should between them based on file name extension.
- property mpiattrs¶
MPI attributes
- propose_out(projsin)¶
Propose input and output projection names given proposed input projection names
projsin.
- save(filename)¶
Save class to disk.
- save_auto(*args, **kwargs)¶
If different formats are possible, this method should between them based on file name extension.
- property xin¶
Input x-coordinates.
- property xout¶
Output x-coordinates.