Skip to content

Enjoying the library? Give us a on GitHub.

You're not viewing the latest version. Click here to go to latest.
logo
Zmodn
zmodn.Zmodn.__init__
Initializing search
    asanchezyali/zmodn
    • Getting Started
    • Developer Guide
    • API Reference
    asanchezyali/zmodn
      • Install the package
      • Basic Usage
      • Arithmetic Operations
      • Matrix Operations
      • Modular Inverse
      • Advanced Features
      • Error Handling
      • Best Practices
      • Code Style
      • Contributing
      • Releasing a New Version
      • Contact
      • License
      • Modular Arithmetic
        • CZmodn
          • Constructors
            • M__init__
              • Parameters
                • pmatrix_integers
                • pmodule
              • Raises
          • Special methods
            • M__add__
            • M__array_function__
            • M__bool__
            • M__contains__
            • M__delitem__
            • M__eq__
            • M__ge__
            • M__getitem__
            • M__gt__
            • M__hash__
            • M__int__
            • M__iter__
            • M__le__
            • M__len__
            • M__lt__
            • M__matmul__
            • M__mul__
            • M__ne__
            • M__neg__
            • M__pos__
            • M__pow__
            • M__reversed__
            • M__setitem__
            • M__sub__
            • M__truediv__
          • String representation
            • M__repr__
          • Methods
            • Mimplements
            • Minv
            • Mmod_inv
          • Properties
            • Pclasses
    • Parameters
      • pmatrix_integers
      • pmodule
    • Raises
    zmodn.Zmodn(matrix_integers, module)

    Initialize a Zmodn object.

    Parameters:¶
    matrix_integers : int, list, or numpy.ndarray¶

    The integer(s) to be represented in Z/nZ.

    module : int¶

    The modulus n for Z/nZ.

    Raises:¶
    • TypeError – If matrix_integers is not a valid input type.

    • ValueError – If module is not a positive integer.

    Back to top
    Previous zmodn.Zmodn
    Next zmodn.Zmodn.__add__
    © Copyright 2023, Alejandro Sánchez Yalí.
    Created using Sphinx 7.4.7. and Sphinx-Immaterial