Notation Preferences — Scientific Python
Type your preferred LaTeX symbol and press Enter. Changes apply across all pages.
| Key | Meaning | Your Symbol | Default |
|---|
No matching symbols found
Global Notation — Scientific Python
Notation conventions used throughout the Scientific Python textbook. Mathematical notation is consistent with Books 1 and 2.
Linear Algebra (NumPy/SciPy)
| Symbol | Meaning |
|---|---|
Vector (lowercase bold) — np.ndarray with ndim=1 | |
Matrix (uppercase bold) — np.ndarray with ndim=2 | |
Transpose, conjugate transpose — .T, .conj().T | |
Kronecker product — np.kron() or GPU-accelerated matvec | |
norm — np.linalg.norm(x, ord=p) |
Signal Processing
| Symbol | Meaning |
|---|---|
Fourier transform — np.fft.fft() / scipy.fft.fft() | |
Convolution — np.convolve() / scipy.signal.fftconvolve() | |
| Sampling frequency | |
| N_\\text{fft} | FFT size |
Optimization
| Symbol | Meaning |
|---|---|
| Proximal operator — implemented as a Python function | |
Gradient — torch.autograd.grad() or manual | |
| \\mathcal{S}_\\tau(\\mathbf{x}) | Soft-thresholding — np.sign(x) * np.maximum(np.abs(x) - tau, 0) |
Deep Learning (PyTorch)
| Symbol | Meaning |
|---|---|
| f_\\theta | Neural network — nn.Module with parameters |
Loss function — loss.backward() triggers autograd | |
| Learning rate | |
| Batch size | |
| Number of unrolling iterations or diffusion steps |
Code Conventions
| Symbol | Meaning |
|---|---|
snake_case | Function and variable names |
CamelCase | Class names |
UPPER_CASE | Constants |
-> ReturnType | Type hints on all public functions |
xp | Array module variable (NumPy, CuPy, or PyTorch) for backend-agnostic code |