by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Athan
    @kgryte
    It is possible that, for whatever functionality you are using, we are simply missing type declarations. If so, let us know what that functionality is and we can prioritize writing those declarations.
    Ben Szymkow
    @simcof
    thanks for that
    we are doing a lot of stats stuff
    so the random package and stats package will be our first focus
    Athan
    @kgryte
    @Planeshifter Has been working on adding additional TypeScript declarations and plans to prioritize this in short order.
    Ben Szymkow
    @simcof
    brilliant
    Athan
    @kgryte
    If you can make a list of packages without declarations that you are using, we can work on adding those first.
    …from the look of things, we seem to have declarations for most all of @stdlib/random and for most of @stdlib/stats/*.
    Athan
    @kgryte
    @simcof Were you able to get things working?
    Ben Szymkow
    @simcof
    @kgryte will be looking today
    was having troubles
    Athan
    @kgryte
    @simcof No worries! Just ping whenever. :)
    Athan
    @kgryte
    @simcof Any luck? :)
    Alvin Sun
    @alvinsunyixiao
    Hi, I just found this library and started looking through the API documentation. Is there a way to perform elementwise operation (add, subtract, divide, etc.) directly on ndarrays instead of going through the array -> iter and then iter -> array routine?
    Athan
    @kgryte
    Hey @alvinsunyixiao ! Thanks for reaching out. At the moment, no…although this is a current WIP. Much of that work is happening here: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/blas/ext/base, but we’ve yet to fully roll out our lower-level strided array APIs. Beyond basic arithmetic, are you looking to do anything else?
    Athan
    @kgryte
    PSA: new version of @stdlib/stdlib published. Many many MANY feature updates, including low-level strided array APIs!
    Alvin Sun
    @alvinsunyixiao
    @kgryte Thank you for the pointer! I am trying to implement an interactive simulation based on vectorized differential equations, so basically looking for numpy equivalent in javascript. I have tried Tensorflow.js. So far tfjs is great in terms of API but still several times slower than numpy native C++ bindings. Is there any benchmark carrying out comparisons between stdlib-js and numpy?
    Athan
    @kgryte

    @alvinsunyixiao Yes, indeed there are benchmarks! For example, https://github.com/stdlib-js/stdlib/blob/b4d11aac1aa74441653f0ba195a184fd5cc51de0/lib/node_modules/%40stdlib/blas/ext/base/dcusum/benchmark/python/numpy/benchmark.py

    Unfortuntely, atm, these benchmarks are scattered across the code base, being localized with their respective package, and need to be run locally. We’ve yet to add tooling for aggregating all the benchmarks across the project.

    If there are particular features you need, we can work to prioritize those. Certainly some of the lower level building blocks.

    Alvin Sun
    @alvinsunyixiao
    Thanks for the help! I am still researching different packages and solutions. Will let you know if I have any feature request.
    Athan
    @kgryte
    Cool! Re: perf. In general, our implementations have performance parity with NumPy.
    Athan
    @kgryte
    @alvinsunyixiao There are a few APIs for addition/subtraction over strided arrays. These are lower level APIs, but can easily be used by ndarray users. For example, here is a BLAS function for the operation a*x + y element-wise: https://github.com/stdlib-js/stdlib/tree/8542ec63ba38530cdbe61d8ec86a09ff370c95e7/lib/node_modules/%40stdlib/blas/base/daxpy
    We’re still in the process of writing the ndarray API wrappers, as done in the second link. If these would be useful, we can easily prioritize them this week.
    Note that, if you are performing these simulations in Node.js, you can leverage hardware optimizations by instructing stdlib to compile against a particular BLAS library (e.g., OpenBLAS). This allows for an order of magnitude speed-up against reference C implementations.
    SindujaRajadurai
    @SindujaRajadurai
    Hi, I am very new to this library. I am not able to access any submodules in stdlib though its added in to project
    any help would be appreciated
    thanks
    Except for stdlib I was not able to add any other submodules using require
    Athan
    @kgryte
    @SindujaRajadurai Is the project public? Not quite sure what you mean by “accessing submodules”.
    If it is public, would you be able to provide a link to it?
    If you mean being able to require stdlib packages (e.g., @stdlib/math/base/special/erf), what version of @stdlib/stdlib are you using?
    SindujaRajadurai
    @SindujaRajadurai
    yea using require I wasn't able to get any modules, getting an error saying the mentioned module not found! I am using 0.6.0 version
    Athan
    @kgryte
    The 0.6.0 version? We have not released a 0.6.0 version. The most recent version was 0.0.92.

    @SindujaRajadurai Ah! I know what you did. You’ve installed the wrong package. You did

    npm install stdlib

    rather than

    npm install @stdlib/stdlib

    This project is published as a scoped package.

    SindujaRajadurai
    @SindujaRajadurai
    Oops! thanks a lot for pointing out
    let me reinstall it
    Athan
    @kgryte
    No problem! Here are the installation instructions for the project: https://www.npmjs.com/package/@stdlib/stdlib#installation
    SindujaRajadurai
    @SindujaRajadurai
    Cool! Thanks a lot, I will install that
    Athan
    @kgryte
    Great!
    Alvin Sun
    @alvinsunyixiao
    @kgryte Thank you very much for the suggestions! I will give it a try with those low level strided APIs. I am not planning to use a backend, since we already have well written performant simulator in Python, we could have just go for a Python backend. But we are trying to deliver real-time interactive experience, so we decided to bring everything to the browser.
    Athan
    @kgryte
    @alvinsunyixiao Makes sense. You have a link to a public repo or is this closed source?
    Alvin Sun
    @alvinsunyixiao
    @kgryte Unfortunately it is closed source for now
    Athan
    @kgryte
    @alvinsunyixiao In any event, let us know if you encounter any issues and/or need any features!
    Shraddheya Shendre
    @ShraddheyaS
    @kgryte Hi! Apologies for going AWOL earlier, but I would love to continue contributing to stdlib. I was thinking of taking up #322 as a refresher to the codebase. Is that okay?
    Athan
    @kgryte
    @ShraddheyaS Awesome! And yep, that sounds good!
    You should be able to use @stdlib/math/base/special/fibonacci as a template for implementing #322 . Let me know if you encounter any issues!
    Athan
    @kgryte
    and don’t worry about generating the actual SVGs for the equations. We can do that on our end upon merge, so long as the README intro includes the HTML markup.
    Shraddheya Shendre
    @ShraddheyaS
    Actually I had a question: I deciphered that the maximum "safe" tribonacci number is T(63) = 8607945812375585.
    But I saw that this magic number in the case of fibonacci is imported from "@stdlib/constants/math/float64-max-safe-nth-fibonacci". Do I need to do the same?
    Athan
    @kgryte
    Don’t worry about that for now. You can just inline in the code. We can always move to a separate package at a later point.