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.2.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.2.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: matrix_operations_amber-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 e96f4c582fb9145f6ae62eaafbf1382587aa78cddd0fbe97d8f589d0184f6c25
MD5 99338eb8fb84ca4620ea95896c4cd300
BLAKE2b-256 fb45556559f35aeeea0aeb4002ac99b61da34d8c2fde2df2ec2cb4cfbafc6189

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for matrix_operations_amber-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81ff1d2fa036d80d845a6dc1bc52bcbb00fb1565af375dbfe732bb2265770591
MD5 b983e3aa5f244afc162621c76aa925c6
BLAKE2b-256 c3ad96c7bef74e277764842702aa9e352836e9b66f9294d689017546c4c34974

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