ndarray-pack

WebJar for ndarray-pack

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

ndarray-pack
Last Version

Last Version

1.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

ndarray-pack
WebJar for ndarray-pack
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/scijs/ndarray-pack

Download ndarray-pack

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/ndarray-pack/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>ndarray-pack</artifactId>
    <version>1.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/ndarray-pack/
implementation 'org.webjars.npm:ndarray-pack:1.2.1'
// https://jarcasting.com/artifacts/org.webjars.npm/ndarray-pack/
implementation ("org.webjars.npm:ndarray-pack:1.2.1")
'org.webjars.npm:ndarray-pack:jar:1.2.1'
<dependency org="org.webjars.npm" name="ndarray-pack" rev="1.2.1">
  <artifact name="ndarray-pack" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='ndarray-pack', version='1.2.1')
)
libraryDependencies += "org.webjars.npm" % "ndarray-pack" % "1.2.1"
[org.webjars.npm/ndarray-pack "1.2.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : cwise-compiler jar [1.1.2,2)
org.webjars.npm : ndarray jar [1.0.13,2)

Project Modules

There are no modules declared in this project.

ndarray-pack

Converts an array-of-arrays (ie numeric.js array) into a packed ndarray.

Example

//First create a numeric.js style array:
var x = [[1, 0, 1],
         [0, 1, 1],
         [0, 0, 1],
         [1, 0, 0]]

var y = require("ndarray-pack")(x)

Install

npm install ndarray-pack

require("ndarray-pack")(nested_array[,out])

Converts the nested array into a packed ndarray.

  • nested_array is an array-of-arrays (ie a numeric.js array)
  • out is an optional ndarray that gets the result of unpacking array

Returns A packed ndarray representation of the nested arrays.

Credits

(c) 2013 Mikola Lysenko. MIT License

org.webjars.npm

Versions

Version
1.2.1