Skip to content
/ vsl Public

V library to develop Artificial Intelligence and High-Performance Scientific Computations

License

Notifications You must be signed in to change notification settings

vlang/vsl

Folders and files

NameName
Last commit message
Last commit date
Jul 30, 2023
Feb 9, 2025
Jan 6, 2024
Jul 28, 2024
Jul 27, 2024
Nov 5, 2023
Oct 17, 2023
May 27, 2023
Dec 19, 2023
Aug 10, 2024
Dec 30, 2024
Oct 25, 2023
Dec 19, 2023
Nov 16, 2024
Sep 14, 2024
Apr 8, 2024
Sep 14, 2024
Sep 14, 2024
Mar 22, 2025
Dec 10, 2023
Sep 17, 2024
Sep 14, 2024
Sep 14, 2024
Sep 14, 2024
Sep 14, 2024
Sep 17, 2024
Nov 16, 2024
Nov 16, 2024
Dec 10, 2023
Sep 14, 2024
Oct 21, 2023
Apr 8, 2024
Dec 30, 2024
Jul 26, 2024
Nov 20, 2023
Aug 10, 2022
Jul 3, 2022
Apr 22, 2023
Apr 5, 2021
May 27, 2023
Jul 26, 2024
Jul 11, 2021
Jun 17, 2024
Oct 22, 2023

Repository files navigation

The V Scientific Library

vlang.io | Docs | Examples | Changelog | Contributing

Mentioned in Awesome V VSL Continuous Integration Deploy Documentation License: MIT Modules

VSL is a V library to develop Artificial Intelligence and High-Performance Scientific Computations.

πŸ“– Docs

Visit vsl docs to know more about the supported features.

VSL is a Scientific Library with a great variety of different modules. Although most modules offer pure-V definitions, VSL also provides modules that wrap known C libraries among other backends that allow high performance computing as an alternative.

This library contains essential functions for linear algebra computations (operations between all combinations of vectors and matrices, eigenvalues and eigenvectors, linear solvers) and the development of numerical methods (e.g. numerical quadrature).

Optionally, we link VSL with existent libraries written in C and Fortran, such as Open BLAS and LAPACK. These existing libraries have been fundamental for the development of high-performant simulations over many years. We believe that it is possible to rewrite these libraries in native V and at the same time achieve the same speed delivered by them, but at the same time, we want to allow to the users of VSL the possibility to choose when to use these libraries as a backend and when not. That is why each module documents the flags that allow this at the time of use.

πŸš€ Installation

It is possible to optimize certain modules using different backends. For this, there are some C dependencies that can be installed optionally. If you want to use these C dependencies and other libraries, the easiest way to work with VSL is via Docker. Having Docker and VS Code installed, you can start developing powerful numerical simulations using VSL in a matter of seconds. Furthermore, the best part of it is that it works on Windows, Linux, and macOS out of the box.

Quick, containerized (recommended!)

  1. Install Docker
  2. Clone https://github.com/ulises-jeremias/hello-vsl
  3. Follow the instructions in the README.md file of the repository πŸ‘Œ

Done. And your system will remain "clean".

Our Docker Image also contains V and the V Tools for working with VS Code (or not).

Install VSL locally

Via vpm

v install vsl

Via vpkg

vpkg get https://github.com/vlang/vsl

Done. Installation completed.

πŸ§ͺ Testing

To test the module, just type the following command:

v test .

πŸ‘₯ Contributors

Made with contributors-img.