Public Member Functions | |
def | __init__ |
__init__() initializes a NewAMatrix object. | |
def | form_a_matrix |
form_a_matrix() calls pyp_nrm/fast_a_matrix() or pyp_nrm/fast_a_matrix_r() to form a NRM from a pedigree. | |
def | load |
load() uses the Numarray Array Function "fromfile()" to load an array from a binary file. | |
def | save |
save() uses the Numarray method "tofile()" to save an array to a binary file. | |
def | printme |
printme() prints the NRM to the screen. | |
Public Attributes | |
kw | |
nrm |
The idea here is to provide a wrapper around a NRM so that it is easier to work with. For large pedigrees it can take a long time to compute the elements of A, so there is real value in providing an easy way to save and retrieve a NRM once it has been formed.
Definition at line 2496 of file pyp_newclasses.py.
def PyPedal::pyp_newclasses::NewAMatrix::__init__ | ( | self, | ||
kw | ||||
) |
__init__() initializes a NewAMatrix object.
self | Reference to the current NewAMatrix() object | |
kw | A dictionary of options. |
Initialize a new numerator relationship matrix.
Definition at line 2503 of file pyp_newclasses.py.
def PyPedal::pyp_newclasses::NewAMatrix::form_a_matrix | ( | self, | ||
pedigree | ||||
) |
form_a_matrix() calls pyp_nrm/fast_a_matrix() or pyp_nrm/fast_a_matrix_r() to form a NRM from a pedigree.
pedigree | The pedigree used to form the NRM. |
form_a_matrix() calls pyp_nrm/fast_a_matrix() or pyp_nrm/fast_a_matrix_r() to form a NRM from a pedigree.
Definition at line 2519 of file pyp_newclasses.py.
def PyPedal::pyp_newclasses::NewAMatrix::load | ( | self, | ||
nrm_filename | ||||
) |
load() uses the Numarray Array Function "fromfile()" to load an array from a binary file.
If the load is successful, self.nrm contains the matrix.
nrm_filename | The file from which the matrix should be read. |
load() uses the Numarray Array Function "fromfile()" to load an array from a binary file. If the load is successful, self.nrm contains the matrix.
Definition at line 2562 of file pyp_newclasses.py.
def PyPedal::pyp_newclasses::NewAMatrix::save | ( | self, | ||
nrm_filename, | ||||
nrm_format = '' | ||||
) |
save() uses the Numarray method "tofile()" to save an array to a binary file.
nrm_filename | The file to which the matrix should be written. |
save() uses the NumPy method "tofile()" to save an array to a binary file.
Definition at line 2589 of file pyp_newclasses.py.
def PyPedal::pyp_newclasses::NewAMatrix::printme | ( | self | ) |
printme() prints the NRM to the screen.
None |
printme() prints the NRM to the screen.
Definition at line 2622 of file pyp_newclasses.py.