TypeTensor - v0.1.0
    Preparing search index...

    Module @typetensor/backend-cpu

    CPU device for TypeTensor

    @typetensor/backend-cpu

    npm version

    CPU backend for TypeTensor tensor operations

    Part of TypeTensor

    npm install @typetensor/backend-cpu
    

    Features:

    • Pure JavaScript implementation (no native dependencies)
    • Full data type support: all integer, float, and boolean types
    • NumPy-compatible broadcasting for binary operations
    • Memory-efficient view operations without data copying
    • TypedArray-based computation for performance

    Operations: Arithmetic, trigonometric, shape manipulation, matrix operations, reductions

    See TypeTensor examples for usage.

    MIT

    Classes

    CPUDevice
    CPUDeviceData

    Variables

    cpu

    Functions

    broadcastIndices
    broadcastShapes
    computeFlatIndex
    computeStrides
    createTypedArray
    isContiguous
    unravelIndex