> ## Documentation Index
> Fetch the complete documentation index at: https://numpyts.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Examples

> Practical examples demonstrating numpy-ts across common domains: linear algebra, signal processing, statistics, image processing, data loading, and performance optimization.

# Examples

These guides walk through real-world patterns using numpy-ts. Each example includes complete, runnable TypeScript code that you can copy directly into your project.

> [card] [Linear Algebra](https://numpyts.dev/v1.7.x/examples/linear-algebra.md)
>
> Solve systems of equations, compute eigenvalues and SVD, invert matrices, and perform matrix multiplication with matmul and dot.

> [card] [Signal Processing with FFT](https://numpyts.dev/v1.7.x/examples/signal-processing.md)
>
> Build composite signals, compute Fourier transforms, filter frequencies, and apply convolution kernels.

> [card] [Statistics & Analysis](https://numpyts.dev/v1.7.x/examples/statistics-analysis.md)
>
> Compute descriptive statistics, build histograms, calculate correlation matrices, run Monte Carlo simulations, and weighted averages.

> [card] [Image Processing Patterns](https://numpyts.dev/v1.7.x/examples/image-processing.md)
>
> Represent images as arrays, slice regions of interest, adjust brightness and contrast, reorder channels, and apply convolution filters.

> [card] [Data Loading & I/O](https://numpyts.dev/v1.7.x/examples/data-loading.md)
>
> Load .npy and .npz files in Node.js and browsers, parse CSV data, and work with text-based formats.

> [card] [Performance Tips](https://numpyts.dev/v1.7.x/examples/performance-tips.md)
>
> Minimize copies with views, pick the right entry point for tree-shaking, choose efficient dtypes, and prefer vectorized operations over loops.

## Prerequisites

All examples assume you have numpy-ts installed:

```bash theme={null}
npm install numpy-ts
```

Most examples use the full entry point for readability:

```typescript theme={null}
import * as np from 'numpy-ts';
```

For production browser bundles, consider using `numpy-ts/core` for tree-shaking. See the [Tree-Shaking guide](https://numpyts.dev/v1.7.x/guides/tree-shaking.md) for details.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.