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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39bd5186cf3b7d0e1c4e9a093a4784259754d70952a0e74dd1ed16da7f24d9a8
|
|
| MD5 |
ffb3ea1fd5c9c25910a58629b1ac6612
|
|
| BLAKE2b-256 |
8c2af9dc0f164640670b26d496aa83d58dde7a731a3f89f079728547cbe5179b
|
File details
Details for the file resistancecurvature-0.0.0.1-py3-none-any.whl.
File metadata
- Download URL: resistancecurvature-0.0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f9cb77f490345553ea4ef39566a4bd19b36fe038877204175d0c76f13666b55
|
|
| MD5 |
34ff200e1ebe699ca8a1850ab867a069
|
|
| BLAKE2b-256 |
89ff250c0433f81044f15077396d67b98e7b450ca631cd69430f9d09570fb47e
|