# hadamard-matrix

> A Hadamard matrix generator of order n using memoization

Latest version **1.0.3** (published 2017-07-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install hadamard-matrix
pnpm add hadamard-matrix
yarn add hadamard-matrix
bun add hadamard-matrix
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2017-07-26 |
| First published | 2017-07-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | tommytrg |
| Maintainers | tommytrg |
| Keywords | hadamard, matrix, mathematics |

## Links

- npm: https://www.npmjs.com/package/hadamard-matrix
- Repository: https://github.com/Tommytrg/hadamard-matrix
- Homepage: https://github.com/Tommytrg/hadamard-matrix#readme
- Issues: https://github.com/Tommytrg/hadamard-matrix/issues
- npm.io page: https://npm.io/package/hadamard-matrix

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2017-07-26
- 1.0.2 — 2017-07-26
- 1.0.1 — 2017-07-25
- 1.0.0 — 2017-07-25

## README

# Hadamard matrix

<!-- ![Last version](https://img.shields.io/github/tag/Tommytrg/sudoku-validate.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/Tommytrg/sudoku-validate/master.svg?style=flat-square)](https://travis-ci.org/Tommytrg/sudoku-validate)
[![Coverage Status](https://img.shields.io/coveralls/Tommytrg/sudoku-validate.svg?style=flat-square)](https://coveralls.io/github/Tommytrg/sudoku-validate)
[![Dependency status](https://img.shields.io/david/Tommytrg/sudoku-validate.svg?style=flat-square)](https://david-dm.org/Tommytrg/sudoku-validate)
[![Dev Dependencies Status](https://img.shields.io/david/dev/Tommytrg/sudoku-validate.svg?style=flat-square)](https://david-dm.org/Tommytrg/sudoku-validate#info=devDependencies)
[![NPM Status](https://img.shields.io/npm/dm/sudoku-validate.svg?style=flat-square)](https://www.npmjs.org/package/sudoku-validate)
[![Donate](https://img.shields.io/badge/donate-paypal-blue.svg?style=flat-square)](https://paypal.me/Tommytrg)

**NOTE:** more badges availables in [shields.io](https://shields.io/) -->

> A Hadamard matrix generator of order n using memoization. 

## Install

```bash
$ npm install hadamard-matrix --save
```

 ## Usage

```js
var hadamard = require('hadamard-matrix')

hadamard(1)
//=> return [1]

hadamard(2)
//=> return [
//           [ 1,  1 ],  
//           [ 1, -1 ]
//          ]

hadamard(4)
//=> return [
//           [ 1,  1,  1,  1 ],  
//           [ 1, -1,  1, -1 ],
//           [ 1,  1, -1, -1 ],  
//           [ 1, -1, -1,  1 ],
//          ]
```


## API

### hadamard(order)

#### order
*Required*<br>
Type: `number`

Order of the Hadamard matrix it will return. It could´t be a odd number.

#### result

Type: `object`<br>

Result will be a matrix with entries ± 1. 



## Information

You can read information about Hadamard matrix in [https://en.wikipedia.org/wiki/Hadamard_matrix](https://en.wikipedia.org/wiki/Hadamard_matrix)



## License

MIT © [tommytrg](https://github.com/Tommytrg).

---
_Source: https://npm.io/package/hadamard-matrix · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
