Skip to main content

A simple package for matrix operations

Project description

Matrix_Operations_zjh

A simple Python package for matrix operations including addition and multiplication. this package is used for homework with little change

Installation

sh
pip install matrix_operations

Usage

python
from matrix_operations import add_matrices, multiply_matrices

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

# Add matrices
result_add = add_matrices(matrix1, matrix2)
print(result_add)  # Output: [[6, 8], [10, 12]]

# Multiply matrices
result_multiply = multiply_matrices(matrix1, matrix2)
print(result_multiply)  # Output: [[19, 22], [43, 50]]

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_zjh-1.0.0.tar.gz (3.1 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_zjh-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file matrix_operations_zjh-1.0.0.tar.gz.

File metadata

  • Download URL: matrix_operations_zjh-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.6

File hashes

Hashes for matrix_operations_zjh-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c5c1be1bdfb074f2258c1c91e5b6e2dcfe71afb1ff251dd399f240e2ec8fa4cf
MD5 5f354fd0a2425473af38ce0391590370
BLAKE2b-256 f4f1c38f7ba2a11aeb070bb422b4d306759537147d518f3545d951e23372bc74

See more details on using hashes here.

File details

Details for the file matrix_operations_zjh-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for matrix_operations_zjh-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abbb3f9a43475279eb04013692a4b63b8e12d2246aa184284a850920cbe3f83d
MD5 10486da046e3d8536b3f3b065ca58bfe
BLAKE2b-256 7b61491dc3cc72ffb19ac01e73f5a84d95644350a008f4f503673bb3717a9d48

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