vice.migration.migration_matrix.tolist

Obtain a copy of this migration matrix as a list.

Signature: x.tolist()

Parameters

xmigration_matrix

An instance of this class.

Returns

copylist

A list of all values in this matrix.

Example Code

>>> import vice
>>> example = vice.migration.migration_matrix(3)
>>> example.tolist()
        [[0, 0, 0], [0, 0, 0], [0, 0, 0]]