# @types/ndarray-scratch

> TypeScript definitions for ndarray-scratch

Latest version **1.2.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/ndarray-scratch
pnpm add @types/ndarray-scratch
yarn add @types/ndarray-scratch
bun add @types/ndarray-scratch
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.2.4 |
| Published | 2023-11-07 |
| First published | 2020-10-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51433 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/ndarray-scratch
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ndarray-scratch
- npm.io page: https://npm.io/package/@types/ndarray-scratch

## Dependencies (1)

- [@types/ndarray](https://npm.io/package/@types/ndarray.md) *

## Recent versions

- 1.2.4 (latest) — 2023-11-07
- 1.2.2 (ts3.8) — 2021-12-24
- 1.2.1 (ts3.5) — 2021-05-08
- 1.2.0 (ts3.2) — 2020-10-13
- 1.2.3 — 2023-10-18

## README

# Installation
> `npm install --save @types/ndarray-scratch`

# Summary
This package contains type definitions for ndarray-scratch (https://github.com/mikolalysenko/ndarray-scratch).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ndarray-scratch.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ndarray-scratch/index.d.ts)
````ts
import { NdArray } from "ndarray";

/**
 * Allocates a temporary ndarray
 */
export function malloc(shape: number[], dtype?: string): NdArray;

/**
 * Creates a scratch ndarray initialized to `0`
 */
export function zeros(shape: number[], dtype?: string): NdArray;

/**
 * Creates a scratch ndarray initialized to `1`
 */
export function ones(shape: number[], dtype?: string): NdArray;

/**
 * Creates a scratch ndarray initialized to `1` if all indices equal, `0` otherwise.
 */
export function eye(shape: number[], dtype?: string): NdArray;

/**
 * Releases a temporary ndarray
 */
export function free(array: NdArray): void;

/**
 * Creates a copy of an ndarray with row-major order.
 */
export function clone(array: NdArray): NdArray;

export as namespace pool;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/ndarray](https://npmjs.com/package/@types/ndarray)

# Credits
These definitions were written by .

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