1.2.4 • Published 6 months ago

@types/ndarray-scratch v1.2.4

Weekly downloads
454
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for ndarray-scratch 1.2
// Project: https://github.com/mikolalysenko/ndarray-scratch
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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: Thu, 23 Dec 2021 23:35:10 GMT
  • Dependencies: @types/ndarray
  • Global values: pool

Credits

These definitions were written by DefinitelyTyped.

1.2.4

6 months ago

1.2.3

7 months ago

1.2.2

2 years ago

1.2.1

3 years ago

1.2.0

4 years ago