Skip to main content

A simple package for matrix operations

Project description

Matrix Operations of Amber Hou

PyPI version MIT License

A simple Python package for matrix operations including addition and multiplication.

Installation

To install the matrix_operations_amber package, run the following command in your terminal:

pip install matrix_operations_amber

Usage

Matrix Addition

from matrix_operations_amber import add_matrices

matrix1 = [[1, 2], [3, 4]]
matrix2 = [[5, 6], [7, 8]]

result_add = add_matrices(matrix1, matrix2)
print("Matrix Addition Result:", result_add)

Matrix Multiplication

from matrix_operations_amber import multiply_matrices

matrix1 = [[1, 2], [3, 4]]
matrix2 = [[5, 6], [7, 8]]

result_multiply = multiply_matrices(matrix1, matrix2)
print("Matrix Multiplication Result:", result_multiply)

Features

Matrix Addition: Adds two matrices of the same dimensions.
Matrix Multiplication: Multiplies two matrices if the number of columns in the first matrix is equal to the number of rows in the second.

CONTRIBUTING

Contributions are welcome! Please read CONTRIBUTING.md for details on how to contribute.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or suggestions, please contact me at 1471147972@qq.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matrix_operations_amber-0.3.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matrix_operations_amber-0.3.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file matrix_operations_amber-0.3.0.tar.gz.

File metadata

  • Download URL: matrix_operations_amber-0.3.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for matrix_operations_amber-0.3.0.tar.gz
Algorithm Hash digest
SHA256 495b422c7272b31dbebeb1ff0d03c350bc43d3555e049548d8ac25d3efa4aa82
MD5 e56e555e5e2d344323c1e3949efc8f52
BLAKE2b-256 f6e7f9e8c2fd9918394f1aaec1e0dc89884c0ab19d0be8cc3fe4bceaf4b2fb5d

See more details on using hashes here.

File details

Details for the file matrix_operations_amber-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for matrix_operations_amber-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1739f697efb4eb0af6340532e2c9ec6d5ff8825357e5fbb91278cbad04efbcdc
MD5 dcec9a7704c914b53a12579581598ff4
BLAKE2b-256 f7ec3c59be2c420de34a6c492e2deeac568d6192f90c29eab08bd0b1179dca1d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page