@types/ndarray-scratch
TypeScript icon, indicating that this package has built-in type declarations

1.2.4 • Public • Published

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

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

Credits

These definitions were written by .

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @types/ndarray-scratch

    Weekly Downloads

    69

    Version

    1.2.4

    License

    MIT

    Unpacked Size

    4.02 kB

    Total Files

    5

    Last publish

    Collaborators

    • types