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

Uploaded Python 3

File details

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

File metadata

  • Download URL: matrix_operations_amber-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 f341ac0fc26fa7bdae461275b72940d62ccb8adeba83774f8103b81f5fde6a10
MD5 870a6cfdf938276b70006721b2e3ce9b
BLAKE2b-256 8d82a89cf51da76511b0ade3766c9b8ae533c5bfa676b59af7d4baf085b0f063

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for matrix_operations_amber-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0634285881d06cdb215cc4e2d8d3c315ad145f0efacf382de514ae9f0e8663d4
MD5 30279a066c7ee97f08177889f15d141a
BLAKE2b-256 1f8a7cf56df3c64e14e4e0725efb81ec3e6308cccc09707399b64015aea1a2c1

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