Git Product home page Git Product logo

numidr's Introduction

NumIdr

NumIdr is a linear algebra and data manipulation library for Idris 2. It features an efficient, type-safe array data structure, as well as utilities for working with vector spaces and matrices.

The name is pronounced like "num-idge".

Features

  • A type-safe and efficient array type, based on NumPy's arrays.

  • Compile-time checked indexing operations to avoid run-time overhead.

  • Utility functions and operations for working with vectors, matrices, homogeneous coordinates, and other linear algebra computations.

  • Transform types for working with rotations, reflections, isometries, and other types of affine maps.

Inspiration

NumIdr is inspired by many different data science and linear algebra libraries, including Python's NumPy, Rust's nalgebra, and Haskell's massiv. It aims to combine the most useful features of each library.

Documentation

Most of the exported utility functions have docstrings. There is also a (currently unfinished) guide on how to use NumIdr here.

Usage

To install using idris2 directly:

git clone https://github.com/kiana-S/numidr
cd numidr
idris2 --install numidr.ipkg

Or you can install using pack:

pack install numidr

numidr's People

Contributors

kiana-s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

numidr's Issues

[ pack ] Pack collection fails to build

Building the last nightly of the pack collection failed due to the following error in numidr:

2024-04-25T21:27:07.1455991Z [ build ] 14/27: Building Data.NumIdr.Matrix (src/Data/NumIdr/Matrix.idr)
2024-04-25T21:27:07.1456707Z [ build ] Error: While processing right hand side of matrix. Undefined name array'. 
2024-04-25T21:27:07.1457201Z [ build ] 
2024-04-25T21:27:07.1457479Z [ build ] Data.NumIdr.Matrix:36:12--36:18
2024-04-25T21:27:07.1457944Z [ build ]  32 | ||| Construct a matrix with the given order and elements.
2024-04-25T21:27:07.1458385Z [ build ]  33 | export
2024-04-25T21:27:07.1458880Z [ build ]  34 | matrix : {default B rep : Rep} -> RepConstraint rep a => {m, n : _} ->
2024-04-25T21:27:07.1459482Z [ build ]  35 |           Vect m (Vect n a) -> Matrix m n a
2024-04-25T21:27:07.1459943Z [ build ]  36 | matrix x = array' {rep} [m,n] x
2024-04-25T21:27:07.1460288Z [ build ]                  ^^^^^^
2024-04-25T21:27:07.1460613Z [ build ] Did you mean any of: array, or Array?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.