Module @typetensor/backend-cpu
@typetensor/backend-cpu

CPU backend for TypeTensor tensor operations
Part of TypeTensor
Install
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.
License
MIT
Classes
- CPUDevice
- CPUDeviceData
Variables
- cpu
Functions
- broadcastIndices
- broadcastShapes
- computeFlatIndex
- computeStrides
- createTypedArray
- isContiguous
- unravelIndex
CPU device for TypeTensor