open-index/open-npm huggingface dataset:
npm package: @modsy/emlapack
Description: BLAS/LAPACK for JavaScript
Author: Yosuke ONOUE
Latest version: 0.1.0

# emlapack
Porting BLAS / LAPACK to JavaScript.

[CLAPACK](http://www.netlib.org/clapack/) is compiled with emscripten.

## Install

```
npm install emlapack
```

## Example

Computing all eigenvalues of a real (upper triangular) symmetric matrix A

```javascript
var emlapack = require('emlapack'),
    n = 5,
    dsyev = emlapack.cwrap('dsyev_', null, ['number', 'number', 'number', 'number', 'number', 'number', 'number', 'number', 'number']),
    pjobz = emlapack._malloc(1),
    puplo = emlapack._malloc(1),
    pn = emlapack._malloc(4),
    pa = emlapack._malloc(n * n * 8),
    plda = emlapack._malloc(4),
    pw = emlapack._malloc(n * 8),
    plwork = emlapack._malloc(4),
    pinfo = emlapack._malloc(4),
    pworkopt = emlapack._malloc(4);

emlapack.setValue(pjobz, 'V'.charCodeAt(0), 'i8');
emlapack.setValue(puplo, 'U'.charCodeAt(0), 'i8');
emlapack.setValue(pn, n, 'i32');
emlapack.setValue(plda, n, 'i32');
emlapack.setValue(plwork, -1, 'i32');

var a = new Float64Array(emlapack.HEAPF64.buffer, pa, n * n);
var w = new Float64Array(emlapack.HEAPF64.buffer, pw, n);
a.set([1.96, 0, 0, 0, 0, -6.49, 3.8, 0, 0, 0, -0.47, -6.39, 4.17, 0, 0, -7.2, 1.5, -1.51, 5.7, 0, -0.65, -6.34, 2.67, 1.8, -7.1]);

dsyev(pjobz, puplo, pn, pa, plda, pw, pworkopt, plwork, pinfo);

var workopt = emlapack.getValue(pworkopt, 'double'),
    pwork = emlapack._malloc(workopt * 8);
emlapack.setValue(plwork, workopt, 'i32');

dsyev(pjobz, puplo, pn, pa, plda, pw, pwork, plwork, pinfo);

console.log(w);
// { '0': -11.065575263268391,
//   '1': -6.22874693239854,
//   '2': 0.8640279752720624,
//   '3': 8.865457108365518,
//   '4': 16.09483711202934 }
```

## Building

To build, you'll need to install and set up [Emscripten](http://kripken.github.io/emscripten-site), then download [clapack](http://www.netlib.org/clapack/) into `./clapack`.

First, configure `clapack` by creating `make.inc`:

```bash
$ cd clapack
$ cp make.inc.example make.inc
```

Next, follow the `libf2c` installation instructions. You'll need to tell it to create `*.h` from `*.h0` files. The easiest way is to just `make all`:

```bash
$ cd F2CLIBS/libf2c
$ make all
```

Now from the main emlapack directory, proceed with gulp build:

```bash
$ gulp build
```

This should take a while. Coffee, perhaps?

## Customizing Builds

If the bundle is too large and you know the specific set of functions you would like to use, you can create a file called `custom/export-functions.js` with the specific functions you want to create a bundle specific to your requirements. In the [custom](./custom) folder you can see files ending in `.example.js` to help you get started.

## Docker

For convenience, this repo also includes a Dockerfile so you can build everything in Docker.

```shell
./scripts/docker_build.sh
```

For more detail, see:

* http://www.netlib.org/blas/
* http://www.netlib.org/lapack/
* http://emscripten.org/

## License

&copy; 2015 Yosuke Onoue, BSD-3-Clause.
npm package: @modsy/react-modsy-scripts
Description: Configuration and scripts for Create React App.
Latest version: 0.3.4

# react-scripts-ts-sass

This package is a fork from the vanilla `react-scripts`, in order to add custom support for [Typescript](https://www.typescriptlang.org/) and [Sass](http://sass-lang.com/).

This package includes scripts and configuration used by [Create React App](https://github.com/facebookincubator/create-react-app).
Please refer to its documentation:

* [Getting Started](https://github.com/facebookincubator/create-react-app/blob/master/README.md#getting-started) – How to create a new app.
* [User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with Create React App.

## Support

* [x] JS/ES6
* [x] Typescript
* [x] SASS
* [x] Multiple Entry Points
* [x] Automatic Browser Open disabled by default (`CRA_OPEN_BROWSER=true` to reenable)

JS/ES6 support has been kept in, so you can use JS/ES6 and Typescript in the same project if you need to.

## Usage

By default, you should have a `src/index.js` or `src/index.tsx` entry point. This will create the primary `app` bundle.

### Multiple Entry Points

Your application `src` directory should contain a `index.js` or `index.tsx` file.

Alternatively, if you are building a an application with [multiple entry points](https://webpack.github.io/docs/multiple-entry-points.html), you can create additional entry points by appending `index` before the filename extension.

When a filename following the convention of `src/*.index.(ts|tsx|js|jsx)` is detected, a new entry point will be added to the webpack entrypoint config.

A new html file will also be automatically generated, and default to using the `public/index.html` template if you did not create a custom template inside `public`.

To use a custom `index.html`, you can create a new html file with the matching entry point key.

Example:

```
src/index.tsx -> public/index.html
src/alt.index.tsx -> public/alt.html
```

The filetypes support for entry points are:

- tsx
- ts
- js
- jsx

**NOTE**: Periods after the first one will be ignored. If you want to generate additional index files for bundles named like `one.two.three.index.js`, it will be ignored and treated like `one.index.js` and generate a `one.html`. Use dashes or underscores as an alternative (ie. `one-two-three.index.js` -> `one-two-three.html`).

## References

* [react-scripts-ts](https://github.com/wmonk/create-react-app-typescript)
* [sass-loader](https://github.com/jtangelder/sass-loader)