API Reference
Complete reference for all NDArray classes and methods.
Core
- NDArray Class - Main array class with properties
- Array Creation - Array creation methods
Array Manipulation
- Array Manipulation - Reshape, transpose, stacking, splitting
- Indexing Routines - Access and modify elements
- Array Import and Export - Converting to/from other formats
Mathematical Operations
- Mathematical Functions - Arithmetic, trigonometry, exponentials, rounding
- Logic Functions - Comparison operations (eq, gt, lt, etc.)
- Bitwise Operations - Bitwise AND, OR, XOR, shifts
- Statistics - Sum, mean, variance, min, max
- Sorting, Searching, and Counting - Sort, argsort, argmin, argmax
- Linear Algebra - Matrix operations
Other
- Exceptions - Error handling
Quick Reference
Most Common Methods
Creation:
NDArray::array()- From PHP arrayNDArray::zeros()- Array of zerosNDArray::ones()- Array of onesNDArray::random()- Random values
Properties:
shape()- Get dimensionsdtype()- Get data typesize()- Total elements
Math:
add(),subtract(),multiply(),divide()sum(),mean(),std(),min(),max()
Shape:
reshape(),transpose(),flatten()slice()- Extract subarrays
