matmath


Namematmath JSON
Version 3.2.0 PyPI version JSON
download
home_pagehttps://github.com/Siddhesh-Agarwal/matmath
SummaryA simple and efficient module for matrix and vector manipulation.
upload_time2024-01-02 10:58:01
maintainer
docs_urlNone
authorSiddhesh Agarwal
requires_python>=3.6,<4.0
licenseMIT
keywords matrix vector math linear algebra algebra matmath
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # [matmath module](https://github.com/Siddhesh-Agarwal/matmath)

A simple and efficient module for matrix manipulation.

![Downloads](https://static.pepy.tech/personalized-badge/matmath?period=total&units=international_system&left_color=grey&right_color=green&left_text=Downloads)

---

## Installing under Python

When installing the **matmath module** for python, it is recommended that you check if you have **python 3.6 or above**. To install matmath, goto a terminal and run:

    pip install matmath

To upgrade matmath, run:

    pip install --upgrade matmath

---

## Functions and their uses

The `Matrix` and `Vector` classes support all mathematical operations like addition, subtraction, multiplication, division, matrix multiplication, etc. Apart from that, the `Matrix` class also supports the following functions:

### Matrix related functions

| Functions                | Description                                                                                              |
| :----------------------- | -------------------------------------------------------------------------------------------------------- |
| `.adjoint()`             | Returns the adjoint of the matrix.                                                                       |
| `.adj()`                 | Alias of `.adjoint()`                                                                                    |
| `.cofactor()`            | Returns the cofactor of the matrix.                                                                      |
| `.copy()`                | Returns a copy of the matrix.                                                                            |
| `.cut()`                 | Returns a smaller matrix by removing the required row and column. The default of row and column is None. |
| `.determinant()`         | Returns the determinant of the matrix (if mathematically possible).                                      |
| `.det()`                 | Alias of `.determinant()`.                                                                               |
| `.inverse()`             | Returns the inverse of the matrix (if mathematically possible) multiplied by the multiplication factor.  |
| `.inv()`                 | Alias of `.inverse()`.                                                                                   |
| `.is_diagonal()`         | Tells if input is a diagonal matrix.                                                                     |
| `.is_identity()`         | Tells if input is an identity matrix.                                                                    |
| `.is_lower_triangular()` | Tells if input is a lower triangular matrix.                                                             |
| `.is_null()`             | Tells if input is a null matrix.                                                                         |
| `.is_skew_symmetric()`   | Tells if input is a skew symmetric matrix.                                                               |
| `.is_square()`           | Tells if input is a square matrix.                                                                       |
| `.is_symmetric()`        | Tells if input is a symmetric matrix.                                                                    |
| `.is_upper_triangular()` | Tells if input is an upper triangular matrix.                                                            |
| `.order()`               | Returns the order of the matrix as a tuple of the form (rows, columns).                                  |
| `.rotate()`              | Returns a matrix which is formed by rotating the given matrix, n times, in clockwise sense.              |
| `.trace()`               | Returns the trace of the matrix, if mathematically possible.                                             |
| `.transpose()`           | Returns the transpose of the matrix.                                                                     |
| `identity()`             | Returns an identity matrix of order N x N multiplied by the multiplication factor.                       |
| `zero()`                 | Returns a null matrix of order N x M. If only 1 parameter is given returns a null matrix of order N x N. |

### Vector related functions

| Method          | Description                                                 |
| --------------- | ----------------------------------------------------------- |
| `argument`      | Returns the argument of the vector.                         |
| `cross_product` | Cross product of the vector with respect to another vector. |
| `dot_product`   | Dot product of the vector with respect to another vector.   |
| `is_parellel`   | Tells whether the two vectors are parellel or not.          |
| `is_unit`       | Tells whether the vector is a unit vector or not.           |
| `magnify`       | Magnifies a vector.                                         |
| `modulus`       | Returns the modulus of the vector.                          |
| `rotate`        | Rotates the 2d vector in 2D space.                          |
| `unit_vector`   | Returns the unit vector in the direction of the vector.     |
| `x`             | Returns the 1st component of the vector.                    |
| `y`             | Returns the 2nd component of the vector.                    |
| `z`             | Returns the 3rd component of the vector.                    |

---

## Contact

Please feel free to reach out if you have any questions:

- **Name**: Siddhesh Agarwal
- **E-mail**: [siddhesh.agarwal@gmail.com](mailto:siddhesh.agarwal@gmail.com)

---

## License

MIT License

Copyright (c) 2021 [Siddhesh-Agarwal](https://www.github.com/Siddhesh-Agarwal)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Siddhesh-Agarwal/matmath",
    "name": "matmath",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6,<4.0",
    "maintainer_email": "",
    "keywords": "matrix,vector,math,linear algebra,algebra,matmath",
    "author": "Siddhesh Agarwal",
    "author_email": "siddhesh.agarwal@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f3/23/5d90589bfa13ff0dac860aef598d7994c9f4e72f8ad6445fd2fafdaa0942/matmath-3.2.0.tar.gz",
    "platform": null,
    "description": "# [matmath module](https://github.com/Siddhesh-Agarwal/matmath)\n\nA simple and efficient module for matrix manipulation.\n\n![Downloads](https://static.pepy.tech/personalized-badge/matmath?period=total&units=international_system&left_color=grey&right_color=green&left_text=Downloads)\n\n---\n\n## Installing under Python\n\nWhen installing the **matmath module** for python, it is recommended that you check if you have **python 3.6 or above**. To install matmath, goto a terminal and run:\n\n    pip install matmath\n\nTo upgrade matmath, run:\n\n    pip install --upgrade matmath\n\n---\n\n## Functions and their uses\n\nThe `Matrix` and `Vector` classes support all mathematical operations like addition, subtraction, multiplication, division, matrix multiplication, etc. Apart from that, the `Matrix` class also supports the following functions:\n\n### Matrix related functions\n\n| Functions                | Description                                                                                              |\n| :----------------------- | -------------------------------------------------------------------------------------------------------- |\n| `.adjoint()`             | Returns the adjoint of the matrix.                                                                       |\n| `.adj()`                 | Alias of `.adjoint()`                                                                                    |\n| `.cofactor()`            | Returns the cofactor of the matrix.                                                                      |\n| `.copy()`                | Returns a copy of the matrix.                                                                            |\n| `.cut()`                 | Returns a smaller matrix by removing the required row and column. The default of row and column is None. |\n| `.determinant()`         | Returns the determinant of the matrix (if mathematically possible).                                      |\n| `.det()`                 | Alias of `.determinant()`.                                                                               |\n| `.inverse()`             | Returns the inverse of the matrix (if mathematically possible) multiplied by the multiplication factor.  |\n| `.inv()`                 | Alias of `.inverse()`.                                                                                   |\n| `.is_diagonal()`         | Tells if input is a diagonal matrix.                                                                     |\n| `.is_identity()`         | Tells if input is an identity matrix.                                                                    |\n| `.is_lower_triangular()` | Tells if input is a lower triangular matrix.                                                             |\n| `.is_null()`             | Tells if input is a null matrix.                                                                         |\n| `.is_skew_symmetric()`   | Tells if input is a skew symmetric matrix.                                                               |\n| `.is_square()`           | Tells if input is a square matrix.                                                                       |\n| `.is_symmetric()`        | Tells if input is a symmetric matrix.                                                                    |\n| `.is_upper_triangular()` | Tells if input is an upper triangular matrix.                                                            |\n| `.order()`               | Returns the order of the matrix as a tuple of the form (rows, columns).                                  |\n| `.rotate()`              | Returns a matrix which is formed by rotating the given matrix, n times, in clockwise sense.              |\n| `.trace()`               | Returns the trace of the matrix, if mathematically possible.                                             |\n| `.transpose()`           | Returns the transpose of the matrix.                                                                     |\n| `identity()`             | Returns an identity matrix of order N x N multiplied by the multiplication factor.                       |\n| `zero()`                 | Returns a null matrix of order N x M. If only 1 parameter is given returns a null matrix of order N x N. |\n\n### Vector related functions\n\n| Method          | Description                                                 |\n| --------------- | ----------------------------------------------------------- |\n| `argument`      | Returns the argument of the vector.                         |\n| `cross_product` | Cross product of the vector with respect to another vector. |\n| `dot_product`   | Dot product of the vector with respect to another vector.   |\n| `is_parellel`   | Tells whether the two vectors are parellel or not.          |\n| `is_unit`       | Tells whether the vector is a unit vector or not.           |\n| `magnify`       | Magnifies a vector.                                         |\n| `modulus`       | Returns the modulus of the vector.                          |\n| `rotate`        | Rotates the 2d vector in 2D space.                          |\n| `unit_vector`   | Returns the unit vector in the direction of the vector.     |\n| `x`             | Returns the 1st component of the vector.                    |\n| `y`             | Returns the 2nd component of the vector.                    |\n| `z`             | Returns the 3rd component of the vector.                    |\n\n---\n\n## Contact\n\nPlease feel free to reach out if you have any questions:\n\n- **Name**: Siddhesh Agarwal\n- **E-mail**: [siddhesh.agarwal@gmail.com](mailto:siddhesh.agarwal@gmail.com)\n\n---\n\n## License\n\nMIT License\n\nCopyright (c) 2021 [Siddhesh-Agarwal](https://www.github.com/Siddhesh-Agarwal)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple and efficient module for matrix and vector manipulation.",
    "version": "3.2.0",
    "project_urls": {
        "Homepage": "https://github.com/Siddhesh-Agarwal/matmath",
        "Repository": "https://github.com/Siddhesh-Agarwal/matmath"
    },
    "split_keywords": [
        "matrix",
        "vector",
        "math",
        "linear algebra",
        "algebra",
        "matmath"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9e1fb56a1f42e7ee58f1cd32b0daf7f932d0cfcb712b291cb1bb0b1848d71f6b",
                "md5": "8c8db2443f2056c194f4452f16df3bb4",
                "sha256": "a63776514a6228f3c08547a2ecfdba132979c1925cae8d0e42b89b0bae70cd8e"
            },
            "downloads": -1,
            "filename": "matmath-3.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8c8db2443f2056c194f4452f16df3bb4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6,<4.0",
            "size": 9824,
            "upload_time": "2024-01-02T10:57:59",
            "upload_time_iso_8601": "2024-01-02T10:57:59.151364Z",
            "url": "https://files.pythonhosted.org/packages/9e/1f/b56a1f42e7ee58f1cd32b0daf7f932d0cfcb712b291cb1bb0b1848d71f6b/matmath-3.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f3235d90589bfa13ff0dac860aef598d7994c9f4e72f8ad6445fd2fafdaa0942",
                "md5": "7f2798fbdc583b6e2b8db176e5af1c32",
                "sha256": "074b5ac6e26929fbbe2009abd0ef5a4f291cfe7309f9417bc0b6cd24c1c7898f"
            },
            "downloads": -1,
            "filename": "matmath-3.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "7f2798fbdc583b6e2b8db176e5af1c32",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6,<4.0",
            "size": 8802,
            "upload_time": "2024-01-02T10:58:01",
            "upload_time_iso_8601": "2024-01-02T10:58:01.099812Z",
            "url": "https://files.pythonhosted.org/packages/f3/23/5d90589bfa13ff0dac860aef598d7994c9f4e72f8ad6445fd2fafdaa0942/matmath-3.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-02 10:58:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Siddhesh-Agarwal",
    "github_project": "matmath",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "matmath"
}
        
Elapsed time: 0.39481s