Git Product home page Git Product logo

ndarray-dtype's Introduction

ndarray-dtype

stable

Return a data type from a string representing the data type.

Mostly useful for using with ndarray where you would like instantiate a typed array of the same array.dtype.

This builds on dtype, but includes some ndarray-specific features like 'buffer' (at the expense of increasing bundle size due to including Buffer).

Usage

NPM

arr = dtype(str)

Returns the constructor for the given data type, or undefined if the string type isn't recognized.

Data type String
Int8Array "int8"
Int16Array "int16"
Int32Array "int32"
Uint8Array "uint8"
Uint16Array "uint16"
Uint32Array "uint32"
Float32Array "float32"
Float64Array "float64"
Array "array"
Uint8ClampedArray "uint8_clamped"
Buffer "buffer"
ArrayBuffer "generic"
ArrayBuffer "data"
ArrayBuffer "dataview"

Note: If Buffer isn't exposed globally, using "buffer" returns undefined.

Install

With npm do:

npm install dtype

Use browserify to require('ndarray-dtype').

See Also

License

MIT, see LICENSE.md for details.

ndarray-dtype's People

Contributors

mattdesl avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

ahdinosaur

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.