Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hughsk/ndarray-json

Serialize/deserialize ndarrays to and from JSON
https://github.com/hughsk/ndarray-json

Last synced: 8 days ago
JSON representation

Serialize/deserialize ndarrays to and from JSON

Awesome Lists containing this project

README

        

# ndarray-json [![experimental](https://rawgithub.com/hughsk/stability-badges/master/dist/experimental.svg)](http://github.com/hughsk/stability-badges) #

Serialize/deserialize [ndarrays](http://github.com/mikolalysenko/ndarray) to
and from JSON. The array data itself is stored in base64 format, with some
additional metadata for shape/stride/etc.

## Installation ##

``` bash
npm install ndarray-json
```

## Usage ##

### `require('ndarray-json').stringify(ndarray)` ###

Stringifies an ndarray into JSON.

### `require('ndarray-json').parse(ndarray)` ###

Takes a stringified ndarray and returns a new copy.