# Riptide > Riptide builds developer tools from the chip to the pixel: Riptorch (machine learning that runs PyTorch code), Raya (a programming language with a whole maths stack) and Evelyn (apps written in Raya). ## Riptorch Riptorch runs your PyTorch code unchanged: `import riptorch as torch`. Its engine (tensors and autograd) is written in Raya, with exact integer maths and four matrix-multiply precisions. The Riptorch page covers installation, Python versions, supported platforms, where it is fastest, its settings and its known limitations. https://riptidecompute.com/riptorch · Reference and guides: https://riptidecompute.com/riptorch/docs Install (0.4.0): `pip install riptorch` on macOS (Apple silicon and Intel), Linux (x86-64 and ARM64) and Windows x64, Python 3.10 to 3.14. Every install method: https://riptidecompute.com/install · Install page: https://riptidecompute.com/riptorch/install · Live notebooks: https://riptidecompute.com/notebooks ## Raya Raya is Riptide’s open-source programming language (BSD 3-clause): exact maths, value classes that live in registers, native SIMD and the CPU’s matrix unit, compiled ahead of time or to WebAssembly. Riptide has also written its own maths libraries in Raya: NumPy-style arrays and linear algebra, SciPy-style calculus, signal, sparse, spatial, special-function and statistics modules, arbitrary precision, computer algebra, rational trigonometry, topology, physics and more. About Raya: https://riptidecompute.com/raya · Docs: https://riptidecompute.com/raya/docs · Playground: https://riptidecompute.com/raya/playground · Research note, exact number types built from msets (polynumbers, maxels, Rat64): https://riptidecompute.com/raya/number-types · Source: https://github.com/riptide-compute/raya Install (0.4.0): `curl -fsSL https://riptidecompute.com/raya/install.sh | sh` on macOS and Linux, `irm https://riptidecompute.com/install.ps1 | iex` on Windows, or `brew install riptide-compute/tap/raya`. https://riptidecompute.com/install · Downloads with SHA256: https://riptidecompute.com/download ## Evelyn Evelyn is Riptide’s app framework for apps written in Raya: state, layout, animation, gestures, painting, data classes and theming. Evelyn apps run live in the browser next to their source in the Evelyn playground. https://riptidecompute.com/evelyn/playground The Evelyn gallery has demos made with our graphics engine, Evelyn, running live in the browser (WebGPU where available, CPU fallback): Ocean Drive '86 (a driving game: neon oceanfront at night, hundreds of physics props, ragdolls, cloth, a path-traced mirror) https://riptidecompute.com/evelyn/gallery/ocean-drive-86; Orb Run https://riptidecompute.com/evelyn/gallery/orb-run; Path tracer https://riptidecompute.com/evelyn/gallery/path-tracer; Kart Mini https://riptidecompute.com/evelyn/gallery/kart-mini; Bricks https://riptidecompute.com/evelyn/gallery/bricks; Input Lab https://riptidecompute.com/evelyn/gallery/input-lab; Box stack https://riptidecompute.com/evelyn/gallery/box-stack; Cloth https://riptidecompute.com/evelyn/gallery/cloth; Ragdoll https://riptidecompute.com/evelyn/gallery/ragdoll; Character https://riptidecompute.com/evelyn/gallery/character; The Sun is not at the centre https://riptidecompute.com/evelyn/gallery/sun-jupiter-barycentre; Inversion in a circle https://riptidecompute.com/evelyn/gallery/inversion; The planets, turned inside out https://riptidecompute.com/evelyn/gallery/orbits-inverted; Stereographic projection https://riptidecompute.com/evelyn/gallery/stereographic; Quadrance and spread https://riptidecompute.com/evelyn/gallery/quadrance-spread; Euler product https://riptidecompute.com/evelyn/gallery/euler-product; Shader wave https://riptidecompute.com/evelyn/gallery/shader-wave; Spring https://riptidecompute.com/evelyn/gallery/spring. https://riptidecompute.com/evelyn/gallery Evelyn 0.4.0 comes with the Riptide SDK 0.4.0 (Raya and Evelyn) for macOS, Linux and Windows: `curl -fsSL https://riptidecompute.com/sdk/install.sh | sh` on macOS and Linux, or the Windows x64 zip https://riptidecompute.com/downloads/0.4.0/riptide-sdk-0.4.0-windows-x64.zip. Its binaries are free to download; its source code is private. https://riptidecompute.com/install ## Raya library reference 40 libraries, 1,080 classes and 8,698 functions and methods. The full list, one line per public member (signature and first doc sentence), is in https://riptidecompute.com/raya/docs/llms-full.txt. Per-library JSON: https://riptidecompute.com/raya/docs/methods/.json (index: https://riptidecompute.com/raya/docs/methods/index.json). ### Core libraries - Core types — `import 'raya:core';` — Strings, numbers, BigInt, booleans, lists, maps, sets, iterables, dates and durations, URIs, regular expressions, errors and exceptions. Imported automatically. (60 classes, 622 functions and methods) https://riptidecompute.com/raya/docs/core-core - Basic maths and random numbers — `import 'raya:math';` — Constants, elementary functions, min and max, random numbers, points and rectangles. (4 classes, 36 functions and methods) https://riptidecompute.com/raya/docs/core-math - JSON, UTF-8 and encodings — `import 'raya:convert';` — Codecs and converters: JSON, UTF-8, Latin-1, ASCII, Base64, HTML escaping and line splitting. (28 classes, 123 functions and methods) https://riptidecompute.com/raya/docs/core-convert - More collections — `import 'raya:collection';` — Hash, linked and splay-tree maps and sets, queues, linked lists, and list and map helpers. (23 classes, 338 functions and methods) https://riptidecompute.com/raya/docs/core-collection - Futures, streams and timers — `import 'raya:async';` — Future, Stream, stream controllers and transformers, Completer, Timer, zones and microtasks. (33 classes, 193 functions and methods) https://riptidecompute.com/raya/docs/core-async - Typed data and SIMD — `import 'raya:typed_data';` — Typed lists and byte buffers, ByteData views, and the SIMD types Float32x4, Int32x4 and Float64x2. (23 classes, 224 functions and methods) https://riptidecompute.com/raya/docs/core-typed-data - Isolates — `import 'raya:isolate';` — Real parallel threads: Isolate.run, ports and capabilities. (8 classes, 48 functions and methods) https://riptidecompute.com/raya/docs/core-isolate - Mutexes and condition variables — `import 'raya:concurrent';` — Synchronisation for memory shared between isolates. (2 classes, 6 functions and methods) https://riptidecompute.com/raya/docs/core-concurrent - Files, processes, sockets and HTTP — `import 'raya:io';` — Files and directories, processes, standard input and output, sockets, an HTTP client and server, and WebSockets. (106 classes, 598 functions and methods) https://riptidecompute.com/raya/docs/core-io - Calling C (FFI) — `import 'raya:ffi';` — Pointers, native types, structs and unions, dynamic libraries, callbacks and native memory. (102 classes, 262 functions and methods) https://riptidecompute.com/raya/docs/core-ffi ### Numerical computing - Arrays and linear algebra — `import 'package:riptide_numerics_cpu/riptide_numerics_cpu.ray';` — n-dimensional arrays with NumPy semantics: float16, bfloat16 and complex dtypes, views, slicing, broadcasting, ufuncs, reductions, matmul and einsum. BLAS levels 1–3, LU, Cholesky, LDLᵀ, QR, SVD, eigenvalues, Schur, least squares and matrix functions. (29 classes, 297 functions and methods) https://riptidecompute.com/raya/docs/numerics-cpu - Calculus and solvers — `import 'package:riptide_numerics_calculus/riptide_numerics_calculus.ray';` — Automatic differentiation, ODE solvers (explicit, stiff, symplectic, batched), B-spline, NURBS and RBF interpolation, quadrature, root finding and optimisation. (52 classes, 326 functions and methods) https://riptidecompute.com/raya/docs/numerics-calculus - FFT and signal processing — `import 'package:riptide_numerics_signal/riptide_numerics_signal.ray';` — Mixed-radix and Bluestein FFT, real and n-D FFT, DCT, convolution, FIR and IIR filter design, windows, resampling and spectral analysis. (18 classes, 105 functions and methods) https://riptidecompute.com/raya/docs/numerics-signal - Sparse linear algebra — `import 'package:riptide_numerics_sparse/riptide_numerics_sparse.ray';` — COO, CSR, CSC and BSR matrices, SIMD sparse products, Krylov solvers (CG, PCG, GMRES, BiCGSTAB, MINRES) with Jacobi, ILU(0) and IC(0) preconditioners, reorderings and sparse Cholesky. (21 classes, 81 functions and methods) https://riptidecompute.com/raya/docs/numerics-sparse - Spatial structures — `import 'package:riptide_numerics_spatial/riptide_numerics_spatial.ray';` — KD-trees, ball trees and BVHs, 2-D and 3-D convex hulls, Delaunay and Voronoi, k-nearest neighbours, point clouds and Morton codes. (13 classes, 82 functions and methods) https://riptidecompute.com/raya/docs/numerics-spatial - Special functions — `import 'package:riptide_numerics_special/riptide_numerics_special.ray';` — Gamma and beta (complete and incomplete), the erf family, Bessel J, Y, I and K, Airy, elliptic integrals, Legendre and spherical harmonics, zeta and hypergeometric functions, tested against SciPy and mpmath. (1 classes, 63 functions and methods) https://riptidecompute.com/raya/docs/numerics-special - Statistics and random numbers — `import 'package:riptide_numerics_stats/riptide_numerics_stats.ray';` — Counter-based Philox and Threefry generators that give the same bits on the CPU and the GPU, distributions with pdf, cdf and ppf, descriptive statistics, regression, PCA and k-means. (22 classes, 142 functions and methods) https://riptidecompute.com/raya/docs/numerics-stats - GPU numerics — `import 'package:riptide_numerics_gpu/riptide_numerics_gpu.ray';` — Dense and batched GEMM, Cholesky and LU, sparse products, random numbers and BVH queries as GPU compute kernels on Metal and Vulkan. (16 classes, 64 functions and methods) https://riptidecompute.com/raya/docs/numerics-gpu - Tensors — `import 'package:riptide_tensor/riptide_tensor.ray';` — A tensor API that records a graph, runs it on the CPU while you develop, and compiles it to GPU kernels. Riptorch’s engine grew from here. (23 classes, 130 functions and methods) https://riptidecompute.com/raya/docs/tensor ### Exact and higher mathematics - Arbitrary precision — `import 'package:riptide_precision/riptide_precision.ray';` — Exact rationals, binary floating point of any precision with correctly rounded operations, interval and ball arithmetic, and elementary and special functions to any precision. (15 classes, 387 functions and methods) https://riptidecompute.com/raya/docs/precision - Computer algebra — `import 'package:riptide_cas/riptide_cas.ray';` — Symbolic expressions, simplification, expansion and factorisation, differentiation, integration, series, multivariate polynomials, Gröbner bases, solving and LaTeX output. (26 classes, 374 functions and methods) https://riptidecompute.com/raya/docs/cas - Algebra and number theory — `import 'package:riptide_algebra/riptide_algebra.ray';` — Permutation groups and character tables, Lie groups and algebras, Clifford algebras and spinors, quaternions and octonions, exact real algebraic numbers, primes, elliptic curves and modular forms. (49 classes, 845 functions and methods) https://riptidecompute.com/raya/docs/algebra - Rational trigonometry — `import 'package:riptide_rational_geometry/riptide_rational_geometry.ray';` — Quadrance and spread instead of distance and angle, over the rationals and finite fields: the five main laws, conics, exact rotations, projective and universal hyperbolic geometry, chromogeometry and exact geometric predicates. (53 classes, 468 functions and methods) https://riptidecompute.com/raya/docs/rational-geometry - Algebraic calculus — `import 'package:riptide_algebraic_calculus/riptide_algebraic_calculus.ray';` — Calculus done exactly over the rationals and prime fields, with polynumbers and subderivatives, tangents with no limits, signed areas and quadratic curvature. (16 classes, 212 functions and methods) https://riptidecompute.com/raya/docs/algebraic-calculus - Exact special functions — `import 'package:riptide_rational_special/riptide_rational_special.ray';` — Special functions for rational trigonometry: spread polynomials, spread periods, the Cayley circle and spread series, next to their classic counterparts. (9 classes, 93 functions and methods) https://riptidecompute.com/raya/docs/rational-special - Differential geometry — `import 'package:riptide_geometry/riptide_geometry.ray';` — Index-notation tensors, metrics and curvature by exact second-order differentiation, differential forms with wedge, d and Hodge star, discrete exterior calculus on meshes, and Lorentz and spinor transformations. (13 classes, 174 functions and methods) https://riptidecompute.com/raya/docs/geometry - Topology — `import 'package:riptide_topology/riptide_topology.ray';` — Homology and cohomology over the integers and Z/p, persistent homology (Vietoris–Rips, alpha, cubical), mapper, discrete Morse theory and 3-manifolds. (28 classes, 179 functions and methods) https://riptidecompute.com/raya/docs/topology - Knot theory — `import 'package:riptide_knots/riptide_knots.ray';` — Link diagrams and Reidemeister moves, exact Jones, Alexander, Conway and HOMFLY-PT polynomials, and a table of small knots and links. (12 classes, 124 functions and methods) https://riptidecompute.com/raya/docs/knots - Gauge fields — `import 'package:riptide_rational_gauge/riptide_rational_gauge.ray';` — Superconductivity as a lattice Higgs model stepped by exact rational updates: U(1) links as rational unit complex numbers turned by Cayley maps, next to the classic angle form. (16 classes, 150 functions and methods) https://riptidecompute.com/raya/docs/rational-gauge - Lattice gauge theory — `import 'package:riptide_lattice/riptide_lattice.ray';` — U(1) gauge symmetry as code, and lattice gauge theory for U(1), SU(2) and SU(3) with the Wilson action. (3 classes, 48 functions and methods) https://riptidecompute.com/raya/docs/lattice ### Geometry, physics and speed - Vectors, quaternions and matrices — `import 'package:riptide_math/riptide_math.ray';` — Allocation-free vector, quaternion and matrix types over SIMD and typed data, spherical harmonics and low-discrepancy sequences. (77 classes, 697 functions and methods) https://riptidecompute.com/raya/docs/math - The CPU matrix unit — `import 'package:riptide_matrix/riptide_matrix.ray';` — Matrix multiply on the matrix unit (SME on M4, M5 and A18; a portable path elsewhere) for float32, exact int8 → int32 and int16 → int64. (1 classes, 5 functions and methods) https://riptidecompute.com/raya/docs/matrix - SIMD helpers — `import 'package:riptide_simd/riptide_simd.ray';` — SIMD helpers over Float32x4, Int32x4 and Float64x2 that compile to single NEON instructions on arm64. (6 classes, 105 functions and methods) https://riptidecompute.com/raya/docs/simd - Arrays of value-class structs — `import 'package:riptide_struct/riptide_struct.ray';` — StructList: a fixed-length list of value-class instances stored contiguously, with no per-element objects. (1 classes, 7 functions and methods) https://riptidecompute.com/raya/docs/struct - Physics — `import 'package:riptide_physics/riptide_physics.ray';` — Rigid bodies with contacts and joints, cloth and soft bodies, SPH and stable fluids, finite elements and heat, orbital mechanics and typed units. (66 classes, 355 functions and methods) https://riptidecompute.com/raya/docs/physics - Quantum mechanics — `import 'package:riptide_rational_quantum/riptide_rational_quantum.ray';` — The Schrödinger equation stepped exactly over the Gaussian rationals, so probability is conserved exactly, rational SU(2) spin rotors and entanglement. (32 classes, 248 functions and methods) https://riptidecompute.com/raya/docs/rational-quantum - Relativity — `import 'package:riptide_rational_relativity/riptide_rational_relativity.ray';` — Special relativity as red geometry with exact velocity composition, and light and orbits around a black hole traced with only + − × ÷. (17 classes, 114 functions and methods) https://riptidecompute.com/raya/docs/rational-relativity - Conics and quadrics — `import 'package:riptide_conics/riptide_conics.ray';` — Conics and quadrics exactly over the rationals: cone sections, Dandelin spheres, foci and directrices. (19 classes, 157 functions and methods) https://riptidecompute.com/raya/docs/conics - Kepler orbits — `import 'package:riptide_kepler/riptide_kepler.ray';` — Kepler orbits turned into a harmonic oscillator and stepped exactly, next to the classic leapfrog and Kepler-equation methods. (11 classes, 81 functions and methods) https://riptidecompute.com/raya/docs/kepler - Vector search — `import 'package:riptide_vector_search/riptide_vector_search.ray';` — Nearest neighbours by cosine similarity beside exact search by spread, on the CPU and the GPU. (26 classes, 135 functions and methods) https://riptidecompute.com/raya/docs/vector-search ## Riptorch reference and guides Every public Riptorch API (2,175 names) grouped as PyTorch groups it, each marked "Same as PyTorch", "Different from PyTorch" (69) or "Riptorch extra" (129). Index: https://riptidecompute.com/riptorch/docs · Full text: https://riptidecompute.com/riptorch/docs/llms-full.txt - torch — Tensor creation, maths, reductions, comparisons, linear algebra, random sampling, serialization and utilities: everything under torch.*. (1022 names) https://riptidecompute.com/riptorch/docs/torch - Tensor — Every method and property of torch.Tensor. (611 names) https://riptidecompute.com/riptorch/docs/tensor - torch.nn — Modules and layers: containers, convolution, pooling, activations, normalization, recurrent and transformer layers, losses, plus nn.init and nn.utils. (217 names) https://riptidecompute.com/riptorch/docs/nn - torch.nn.functional — The functional forms of the layers: convolutions, pooling, attention, activations, losses and vision functions. (153 names) https://riptidecompute.com/riptorch/docs/nn-functional - torch.optim — Optimizers (SGD, Adam, AdamW, Lion and the rest) and learning-rate schedulers. (34 names) https://riptidecompute.com/riptorch/docs/optim - torch.linalg — Linear algebra: decompositions, solvers, inverses, norms, plus exact extras for quadrance and spread. (55 names) https://riptidecompute.com/riptorch/docs/linalg - torch.fft — Discrete Fourier transforms, plus the exact number-theoretic transform and polynomial product. (26 names) https://riptidecompute.com/riptorch/docs/fft - torch.special — Special functions: gamma and related functions, the error function family, Bessel functions, ndtr and more. (57 names) https://riptidecompute.com/riptorch/docs/special - Riptorch extras — similarity_topk, SimilarityIndex, spread, set_matmul, set_int_matmul, set_compat, set_float64, realizer_report, improvements(), the RIPTORCH_* environment variables and all 52 correct-by-default differences. https://riptidecompute.com/riptorch/docs/extras ### Riptorch guides - Switch in one line — What changes when you replace import torch, how to check where your model runs, and how to get stock behaviour back. https://riptidecompute.com/riptorch/docs/guides/switch - Exact vector search for RAG — Why float16 and bfloat16 search reorders top-10s, and the pipeline that returns the same ranking every time. https://riptidecompute.com/riptorch/docs/guides/exact-vector-search - Storing embeddings in int8 and int16 — Quantise embeddings without losing the ranking: symmetric scales and exact scoring. https://riptidecompute.com/riptorch/docs/guides/storing-embeddings - Exact integer matmul — int8 and int16 matrix multiplies with no wraparound, and where they run. https://riptidecompute.com/riptorch/docs/guides/exact-integer-matmul - Matmul precision and speed settings — set_matmul modes, GPU + CPU splitting, integer matmul placement and devices. https://riptidecompute.com/riptorch/docs/guides/matmul-settings - How the exact maths works — Exact integer matmul from 8-bit digits, exact search ranking, and sin, exp2 and log2 with the same bits on every device. https://riptidecompute.com/riptorch/docs/guides/exact-maths - Writing your own fast exact code — Write a hot loop in Raya, compile it to a shared library, and call it from Python on NumPy buffers. https://riptidecompute.com/riptorch/docs/guides/raya-custom-ops ## Whitepapers Research papers: https://riptidecompute.com/whitepapers - [Exact vector search on GPUs and CPUs](https://riptidecompute.com/whitepapers/exact-vector-search): Brute-force top-10 search that returns the float64 ranking on every query, measured against PyTorch, FAISS and cuVS on six NVIDIA GPUs and four CPUs. - [How embedding pipelines change the answer](https://riptidecompute.com/whitepapers/embedding-pipelines): How often common precision and quantisation choices change the top-10 a retrieval system returns, measured on BEIR FiQA and SciFact against a float64 reference, and a pipeline that keeps the ranking. - [A silent gradient bug in AMD's attention kernels](https://riptidecompute.com/whitepapers/amd-attention-gradient-bug): AITER's deterministic attention backward on MI350X returned a wrong query gradient once one buffer passed 4 GiB. How it was found, measured against float64, traced to 32-bit buffer offsets in Composable Kernel, and the fix proposed upstream (open, not merged). - [Riptide kernels on AMD Instinct MI350X](https://riptidecompute.com/whitepapers/riptide-kernels-mi350x): Attention, small-model generation and kernel launch on one MI350X, against PyTorch 2.15 for ROCm, AITER, Triton and Hugging Face, with 95% confidence intervals and float64 checks, including where AMD's kernels are still faster. - [Precision Is a Position: How Floating-Point Choices Move Portfolios, Backtests and Models](https://riptidecompute.com/whitepapers/precision-is-a-position): Minimum-variance portfolios, PCA, rolling variance, nearest-regime search, model training and Monte Carlo pricing measured against float64 on five NVIDIA GPU models and three server CPUs, with synthetic market data only (version 2.0): how far each precision moves the answer, which setups reproduce bit for bit, and where Riptorch's exact paths are faster or slower. - [Reproducible random numbers](https://riptidecompute.com/whitepapers/reproducible-random-numbers): One seed, the same random numbers on CPUs, NVIDIA GPUs and Apple GPUs at any thread count, checked bit for bit, with statistical tests, PractRand to 256 GB, and speed against stock PyTorch. - [Protein backbones in rational trigonometry](https://riptidecompute.com/whitepapers/rational-trigonometry-protein-geometry): The protein backbone as a chain of exact rational screws, tripeptide loop closure solved with integer polynomials and certified real roots over 3.78 million PDB windows, Ramachandran boundaries as genus-1 curves in rational half-turn coordinates, helix packing from chords and the Triple spread formula, and AlphaFold models compared residue by residue. - [Complex geometry for quantum mechanics, exactly](https://riptidecompute.com/whitepapers/complex-geometry-quantum-mechanics): Qubits, Born probabilities, fidelity, the Bloch sphere and the Hopf map in quadrance and spread over the Gaussian rationals, with an exact state-vector simulator measured against complex64 and complex128 at up to 28 qubits. - [The double helix, as geometry](https://riptidecompute.com/whitepapers/double-helix-geometry): DNA's double helix in quadrance and spread: rational screws and why no rational twist ever closes, base-pair step geometry computed exactly from 7,402 steps in 850 public crystal structures, A, B and Z forms and their grooves, and exact rational against mpmath, float64 and float32. - [The solar system, as geometry](https://riptidecompute.com/whitepapers/solar-system-rational-geometry): Barycentres as weighted points, planets as spheres with quadrance-radii, inclinations as spreads between plane normals, inversion and stereographic projection as rational maps: a century of NASA/JPL ephemerides computed exactly in Raya and checked against float64 and float32, with float64 statistics for 1.59 million asteroid orbits. - [Training that gives the same weights on every machine](https://riptidecompute.com/whitepapers/bit-identical-training): four models trained to the same final weights, bit for bit, on an RTX 4090, H100, Xeon, EPYC and Graviton4 at stock accuracy; which transcendentals in training can be replaced, at what cost, and the speed result. - [Exact integer filters for images, audio and quantized CNNs](https://riptidecompute.com/whitepapers/exact-integer-signal-processing): image filters, audio filters, cross-correlation and int8 CNN inference with exact integers on Intel, AMD and Arm CPUs and NVIDIA GPUs, every output checked, against OpenCV, SciPy, PyTorch, cuDNN, ONNX Runtime and TensorRT; wins and losses. - [Exact image and audio filters on GPUs](https://riptidecompute.com/whitepapers/exact-filters-gpu): Box, Gaussian and general 2-D image filters, int8 filters and a 16-bit audio FIR computed in exact integers on NVIDIA GPUs, with the same output bits on an A10G, L4 and B200, timed and error-checked against NPP, OpenCV CUDA, CV-CUDA, cuDNN, CuPy, cuFFT and PyTorch (torch.compile) at their fastest settings. - [Multinumbers, measured](https://riptidecompute.com/whitepapers/multinumbers-measured): exact multivariate polynomials as packed multinumbers in Raya against the literal construction and FLINT, Singular and SymPy, with protein loop closure, robot-arm IK and generating functions; where FLINT is far ahead. - [Plain Raya integer loops, faster than C](https://riptidecompute.com/whitepapers/raya-compiler-faster-than-c): 21 ordinary integer loops in Raya against gcc 13 and clang 18 at -O3 -march=native on Graviton3, Graviton4, Sapphire Rapids, Ice Lake and EPYC Zen 4; faster in 105 of 105 measurements with the same results, and where the win comes from. Version 1.2: the compiler's own vector code for dot and polynomial products, faster than C in 74 of 75 measurements and up to 5.8× faster than the kernel call on small nests. - [Exact numbers on current GPUs](https://riptidecompute.com/whitepapers/exact-numbers-on-gpus): Correctly rounded float64 and float32 matrix products, exact polynomial products against FLINT 3.6.0 on a 128-core server, small-integer storage and bit-identical training, measured on an RTX 4090, H100, H200 and B200; including where the vendor library or the CPU is still ahead. - [CPU and GPU together, exactly](https://riptidecompute.com/whitepapers/cpu-and-gpu-together): How the CPU and the GPU should split exact integer work when the data starts in host memory, measured on an RTX 4090 with 13 EPYC cores and an H100 with 22–23 Xeon cores (routing also on an AWS A10G with 4 vCPUs); routing a mixed batch of exact polynomial products is 9–14x faster than the best FLINT schedule; including where the CPU alone wins and where splitting adds almost nothing. - [Exact int8 CNNs on GPU tensor cores](https://riptidecompute.com/whitepapers/exact-int8-cnns-tensor-cores): An integer-only int8 CNN engine on NVIDIA tensor cores (RTX 4090, H100, B200) that gives the same output bits as Riptide's CPU engine on every machine, measured against TensorRT int8 and fp16, PyTorch and ONNX Runtime at batch 1 to 256; including where TensorRT is still faster. - [Exact mortgage APRs and amortization, checked against 1.2 million loans](https://riptidecompute.com/whitepapers/exact-mortgage-apr): An exact reference for the Regulation Z APR under both permitted treatments of an odd first period, and for amortization to the cent, run on 1,200,000 generated loans and compared with spreadsheet-style PMT/RATE, numpy-financial, the npm financial package, LibreOffice Calc, QuantLib and two Python mortgage packages, each against the convention it implements. - [Exact tick data: market data as small integers](https://riptidecompute.com/whitepapers/exact-tick-data): Lead–lag correlation, volume at price, P&L distributions with exact VaR and expected shortfall, rolling VWAP and variance and top-of-book features on integer ticks and lots, in plain Raya against plain C, a byte-limb C twin, hand-written intrinsics and the Python tools on Graviton4, Sapphire Rapids and Zen 4 (synthetic data); level with intrinsics at 1,024 lags, behind them elsewhere; every float variance method misses the correctly rounded value. - [Reinforcement learning, exactly: one set of weights on every machine](https://riptidecompute.com/whitepapers/exact-rl-market-making): PPO on a market-making environment whose order book is integer ticks and lots, trained with Riptide's exact pipeline and with JAX (PureJaxRL layout), PyTorch eager, torch.compile and the CleanRL layout on AWS NVIDIA L4, A10G and H100 GPUs and four CPUs; throughput, sample efficiency, cost, and the returned weights and rewards compared across reruns, seeds and devices. - [One mortgage-backed-security price on every machine](https://riptidecompute.com/whitepapers/exact-mbs-price): A Monte Carlo price and option-adjusted spread for a mortgage pass-through pool in exact integer fixed point, bit-identical on NVIDIA A10G and L40S GPUs and on Graviton4, Sapphire Rapids and Zen 4 CPUs, timed and error-checked against a custom float64 kernel, PyTorch (torch.compile with CUDA graphs), CuPy, NumPy and QuantLib; and 56 million mortgages amortized in exact cents, with a breakdown of where float64 schedules differ and why. - [Two servicing systems, one loan book, and a CECL allowance that is the same on every machine](https://riptidecompute.com/whitepapers/exact-servicing-cecl): 5 million synthetic mortgages serviced by four systems with identical rules: two float64 dollar systems break against exact integer cents on 61% and 77.5% of loans (half-cent ties in escrow); a careful integer-cents float64 system matches. A loan-level CECL allowance of $2,397,660,299.96 is identical on three CPUs, an A10G and an L4. In preparation: chemistry as geometry. - [Raya compiler: plain loops faster than C](https://riptidecompute.com/raya/compiler): integer loop nests on vector and matrix units, exact, benchmarked against gcc and clang on five CPUs. - [Exact order books for every US equity symbol, on a GPU](https://riptidecompute.com/whitepapers/exact-us-equities-order-books): Every symbol's full-depth order book rebuilt from a Nasdaq TotalView-ITCH trading day, and exact VWAP, rolling variance and all-pairs lead–lag on every trade, on NVIDIA A100 and A10G GPUs and Intel and AMD CPUs, measured against cuDF, PyTorch (torch.compile), pandas and polars and checked value by value against the exact answer.