Skip to main content

Calculate resistance curvature

Project description

ResistanceCurvature

A powerful Python package for calculating resistance curvature

Features

  • High performance: GPU acceleration supported

  • Easy to Use: Fully based on PyTorch, with a clear interface design

Installation

You can install the package using pip:

pip install ResistanceCurvature

Simple Example

import torch

from ResistanceCurvature.resistance_curvature import ResistanceCurvature



device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')

rc = ResistanceCurvature(device=device)

adj_tensor = torch.tensor([[0, 1, 1],

                     [1, 0, 1],

                     [1, 1, 0],], dtype=torch.float32, device=device)

node_curvature, edge_curvature = rc.cal_curvature(adj_tensor)

print("Node Curvature:", node_curvature)

print("Edge Curvature:", edge_curvature)

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

resistancecurvature-0.0.0.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

resistancecurvature-0.0.0.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file resistancecurvature-0.0.0.1.tar.gz.

File metadata

  • Download URL: resistancecurvature-0.0.0.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.19

File hashes

Hashes for resistancecurvature-0.0.0.1.tar.gz
Algorithm Hash digest
SHA256 39bd5186cf3b7d0e1c4e9a093a4784259754d70952a0e74dd1ed16da7f24d9a8
MD5 ffb3ea1fd5c9c25910a58629b1ac6612
BLAKE2b-256 8c2af9dc0f164640670b26d496aa83d58dde7a731a3f89f079728547cbe5179b

See more details on using hashes here.

File details

Details for the file resistancecurvature-0.0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for resistancecurvature-0.0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f9cb77f490345553ea4ef39566a4bd19b36fe038877204175d0c76f13666b55
MD5 34ff200e1ebe699ca8a1850ab867a069
BLAKE2b-256 89ff250c0433f81044f15077396d67b98e7b450ca631cd69430f9d09570fb47e

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