invert-permutation

WebJar for invert-permutation

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

invert-permutation
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

invert-permutation
WebJar for invert-permutation
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/scijs/invert-permutation

Download invert-permutation

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

invert-permutation

Computes the inverse of a permutation

Example

console.log( require("invert-permutation")([1,3,0,2]) )

//Prints:
//          [ 2, 1, 3, 0 ]

Install

npm install invert-permutation

API

`require("invert-permutation")(perm[, result])

Inverts a permutation

  • perm is the permutation to invert
  • result is an optional array that gets the result of inverting the permutation

Returns result or a newly allocated array if nothing is specified

Credits

(c) 2013 Mikola Lysenko. MIT License

org.webjars.npm

Versions

Version
1.0.0