Geometry processing and deep learning utilities for PyTorch.
Project description
TorchStuff
Calculate the Polygon area and length (perimeter).
Table of Contents
Installation
pip3 install torchstuff
Usage
import torch
# Example vertices
vertices = torch.tensor([[0.0, 0.0], [1.0, 0.0], [1.0, 1.0], [0.0, 1.0]])
# Create Polygon object
polygon = Polygon(vertices)
# Access properties
area = polygon.area
length = polygon.length
print(f"Area: {area}, Length: {length}")
Contributing
Just me for now
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
torchstuff-0.0.1.tar.gz
(7.3 kB
view details)
Built Distribution
File details
Details for the file torchstuff-0.0.1.tar.gz
.
File metadata
- Download URL: torchstuff-0.0.1.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 106e05bbc0e955eb4cbf868b3d4a432d4c860de28f0ee7042685d4139d3ba3eb |
|
MD5 | ce5717cc8d469555964f6e073d000471 |
|
BLAKE2b-256 | cf1830fb8a85cc43825dd9c5c4cabc2d3386179982b6eff51b7f98927a373b48 |
File details
Details for the file torchstuff-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: torchstuff-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6186be0ed7b9c43e699c9164d0ba6febc24dff7862667a14be7e52454d72c78e |
|
MD5 | ae314b2d1a3a20378afeb02ea7b2099b |
|
BLAKE2b-256 | 991f811d959c0687b6615500aacf4987523bcb0b67fde7e7bada1c6c8ab38417 |