vice.migration.migration_matrix.tonumpyarray¶
Obtain a copy of this migration matrix as a NumPy array.
Signature: x.tonumpyarray()
Parameters¶
- x
migration_matrix
An instance of this class.
Example Code¶
>>> import vice
>>> example = vice.migration.migration_matrix(3)
>>> example.tonumpyarray()
array([[0, 0, 0],
[0, 0, 0],
[0, 0, 0]])