Skip to main content

make connected sum for link pd_code

Project description

pd_code_connected_sum

caculate connected sum for link pd_code.

Install

pip install pd-code-connected-sum

Usage

import pd_code_connected_sum

# L2a1
link_pd_code_1 = [[4, 1, 3, 2], [2, 3, 1, 4]]

# L4a1
link_pd_code_2 = [[6, 1, 7, 2], [8, 3, 5, 4], [2, 5, 3, 6], [4, 7, 1, 8]]

connect_pos_1 = 1
connect_pos_2 = 1

new_pd_code, num_map = pd_code_connected_sum.connected_sum(
    link_pd_code_1, link_pd_code_2, connect_pos_1, connect_pos_2)

print(new_pd_code)
print(num_map)

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

pd_code_connected_sum-0.0.3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

pd_code_connected_sum-0.0.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file pd_code_connected_sum-0.0.3.tar.gz.

File metadata

  • Download URL: pd_code_connected_sum-0.0.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11

File hashes

Hashes for pd_code_connected_sum-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a8991453f4697a8112ebeffd73897e757bda1caad4b16340e409297e7074ff99
MD5 6df87b5153cd9c29a5d24a03b81fd3d4
BLAKE2b-256 92f434c4e654b1d5a4773bce73027daf558c956b7d5514b4603a1e18cdbbe932

See more details on using hashes here.

File details

Details for the file pd_code_connected_sum-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pd_code_connected_sum-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ebc7dc16653972e56401342eaa187a60e69f3b4f82b9211d2958a4cce4c48ab3
MD5 2f59af75642923612e97c8389f21f2fd
BLAKE2b-256 3696c6bf496cd218e37c26fa941cf1e26de2e50500a898303f220904be67e4aa

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