Giter VIP home page Giter VIP logo

r-js / blasjs Goto Github PK

View Code? Open in Web Editor NEW
288.0 13.0 20.0 3.33 MB

Pure Javascript manually written :ok_hand: implementation of BLAS, Many numerical software applications use BLAS computations, including Armadillo, LAPACK, LINPACK, GNU Octave, Mathematica, MATLAB, NumPy, R, and Julia.

License: MIT License

JavaScript 0.07% TypeScript 65.25% Fortran 33.25% Makefile 0.21% R 0.09% WebAssembly 0.73% ActionScript 0.40%
blas linear-algebra lapack linear-regression vector-algebra generalized-linear-model matrix vector complex-matrix conjugate-matrix

blasjs's People

Contributors

dependabot[bot] avatar jacobbogers avatar sheetjsdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blasjs's Issues

Missing functions

Hi Jacob,
I came across your library and I couldn’t find a couple of functions in the library.
dposv
dpotrs
dorgqr
dgeqrf
Are you still interested in developing this library? I would be happy to fund the functions I need.
Regards,
Isaac
P.S. BTW, the library is really awesome!

Missing reference to jest-matcher-utils

This package seems to fail when run under pnpm it, seemingly due to a missing dependency on jest-matcher-utils referred to from jest-extension.ts. Attempted to fix in #15, but perhaps the type import should be removed instead.

 FAIL  lib/l3/complex/csyrk/__test__/test.ts
  ● Test suite failed to run

    lib/packages/__test__/jest-extension.ts:4:41 - error TS2307: Cannot find module 'jest-matcher-utils' or its corresponding type declarations.

    4 import type { MatcherHintOptions } from 'jest-matcher-utils';

Do you want to contribute on webgpu or wasm versions? Create an issue and lets discuss.

Originally posted by @jacobbogers in #15 (comment)

Question about slice function

Hi,

First of all thanks for all this work. I have a question about

im[base + (i - rowStart)] = this.i[coorJ + i];

is there a reason why you would use undefined behavior here?

In the first round base + (i - rowStart) == -1 which result in a undefined behavior and then skips by one and turns the im = 0.

if this is the purpose wouldn't it be better to wrap it around an if statement to make it more clear what the desired behavior would be?

Bug in isamax and icamax

isamax
icmax

Reference BLAS

         IX = 1
         DMAX = DABS(DX(1))
         IX = IX + INCX
         DO I = 2,N
            IF (DABS(DX(IX)).GT.DMAX) THEN
               IDAMAX = I
               DMAX = DABS(DX(IX))
            END IF
            IX = IX + INCX
         END DO
      END IF
      RETURN

They should be
_isamax = i; and _icamax = i;

I found this bug when I did a rewrite of the generate-fixtures to get complete test coverage.

These two test are wrong max should be max: 3.

        case1: {
            desc: 'isamx n=3, incx=2',
            input: {
                n: 3,
                cx: {
                    re: [1, 2, 3, 4, 5, 6]
                },
                incx: 2,
            },
            output: {
                max: 5
            },
        },

        case1: {
            desc: 'icamx n=3, incx=2',
            input: {
                n: 3,
                cx: {
                    re: [1, 2, 3, 4, 5, 6],
                    im: [7, 8, 9, 10, 11, 12]
                },
                incx: 2,
            },
            output: {
                max: 5
            },
        },

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.