ndarray-fill

WebJar for ndarray-fill

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

ndarray-fill
Last Version

Last Version

1.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

ndarray-fill
WebJar for ndarray-fill
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

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

Download ndarray-fill

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : cwise jar [1.0.10,2)

Project Modules

There are no modules declared in this project.

ndarray-fill

Initialize an ndarray with a function.

Build Status

Example

var zeros = require("zeros")
var fill = require("ndarray-fill")

var x = zeros([5, 5])

fill(x, function(i,j) {
  return 10*i + j
})

//Now x = 
//
//   0  1  2  3  4
//  10 11 12 13 14
//  20 21 22 23 24
//  30 31 32 33 34
//

Install

npm install ndarray-fill

require("ndarray-fill")(array, func)

Fills an ndarray with a pattern

  • array is an ndarray which will be initialized
  • func is a function that will be used to initialize the array

Returns An initialized ndarray

Credits

(c) 2013 Mikola Lysenko. MIT License

org.webjars.npm

Versions

Version
1.0.2