INNER CODE UNIT · Python

Matrix

webartifex/intro-to-python · 11_classes/sample_package/matrix.py:10

class Matrix:
    """An m-by-n-dimensional matrix from linear algebra.

    All entries are converted to floats, or whatever is set in the typing attribute.

    Attributes:
        storage (callable): data type used to store the entries internally;
            defaults to tuple
        typing (callable): type casting applied to all entries upon creation;
            defaults to float
        vector_cls (vector.Vector): a reference to the Vector class to work with
        zero_threshold (float): max. tolerance when comparing an entry to zero;
            defaults to 1e-12
    """

    storage = utils.DEFAULT_ENTRIES_STORAGE
    typing = utils.DEFAULT_ENTRY_TYPE
    # the `vector_cls` attribute is set at the bottom of this file

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…