Every Raya maths method
The full reference for Riptide’s Raya maths libraries and Raya’s core libraries: every public class, function and method, with its signature and its documentation, generated from the source. Using PyTorch? The Riptorch reference covers every Riptorch API.
Searches names, classes, libraries and the first sentence of each doc.
Core libraries
The language’s own libraries: strings, numbers, collections, async, typed data and SIMD, isolates, files and FFI.
Core types
raya:coreStrings, numbers, BigInt, booleans, lists, maps, sets, iterables, dates and durations, URIs, regular expressions, errors and exceptions. Imported automatically.
60 classes · 622 functions and methods · 503 examplesBasic maths and random numbers
raya:mathConstants, elementary functions, min and max, random numbers, points and rectangles.
4 classes · 36 functions and methods · 36 examplesJSON, UTF-8 and encodings
raya:convertCodecs and converters: JSON, UTF-8, Latin-1, ASCII, Base64, HTML escaping and line splitting.
28 classes · 123 functions and methods · 110 examplesMore collections
raya:collectionHash, linked and splay-tree maps and sets, queues, linked lists, and list and map helpers.
23 classes · 338 functions and methods · 287 examplesFutures, streams and timers
raya:asyncFuture, Stream, stream controllers and transformers, Completer, Timer, zones and microtasks.
33 classes · 193 functions and methods · 185 examplesTyped data and SIMD
raya:typed_dataTyped lists and byte buffers, ByteData views, and the SIMD types Float32x4, Int32x4 and Float64x2.
23 classes · 224 functions and methods · 207 examplesIsolates
raya:isolateReal parallel threads: Isolate.run, ports and capabilities.
8 classes · 48 functions and methods · 32 examplesMutexes and condition variables
raya:concurrentSynchronisation for memory shared between isolates.
2 classes · 6 functions and methods · 6 examplesFiles, processes, sockets and HTTP
raya:ioFiles and directories, processes, standard input and output, sockets, an HTTP client and server, and WebSockets.
106 classes · 598 functions and methods · 400 examplesCalling C (FFI)
raya:ffiPointers, native types, structs and unions, dynamic libraries, callbacks and native memory.
102 classes · 262 functions and methods · 202 examplesNumerical computing
Arrays and linear algebra
riptide_numerics_cpun-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.
What NumPy and LAPACK do29 classes · 297 functions and methods · 250 examplesCalculus and solvers
riptide_numerics_calculusAutomatic differentiation, ODE solvers (explicit, stiff, symplectic, batched), B-spline, NURBS and RBF interpolation, quadrature, root finding and optimisation.
What scipy.integrate, interpolate and optimize do52 classes · 326 functions and methods · 283 examplesFFT and signal processing
riptide_numerics_signalMixed-radix and Bluestein FFT, real and n-D FFT, DCT, convolution, FIR and IIR filter design, windows, resampling and spectral analysis.
What numpy.fft and scipy.signal do18 classes · 105 functions and methods · 96 examplesSparse linear algebra
riptide_numerics_sparseCOO, 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.
What scipy.sparse does21 classes · 81 functions and methods · 70 examplesSpatial structures
riptide_numerics_spatialKD-trees, ball trees and BVHs, 2-D and 3-D convex hulls, Delaunay and Voronoi, k-nearest neighbours, point clouds and Morton codes.
What scipy.spatial does13 classes · 82 functions and methods · 65 examplesSpecial functions
riptide_numerics_specialGamma 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.
What scipy.special does1 classes · 63 functions and methods · 63 examplesStatistics and random numbers
riptide_numerics_statsCounter-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.
What scipy.stats does22 classes · 142 functions and methods · 127 examplesGPU numerics
riptide_numerics_gpuDense 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 methodsTensors
riptide_tensorA 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 · 89 examplesExact and higher mathematics
Arbitrary precision
riptide_precisionExact rationals, binary floating point of any precision with correctly rounded operations, interval and ball arithmetic, and elementary and special functions to any precision.
What MPFR and mpmath do15 classes · 387 functions and methods · 335 examplesComputer algebra
riptide_casSymbolic expressions, simplification, expansion and factorisation, differentiation, integration, series, multivariate polynomials, Gröbner bases, solving and LaTeX output.
What SymPy does26 classes · 374 functions and methods · 285 examplesAlgebra and number theory
riptide_algebraPermutation 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 · 643 examplesRational trigonometry
riptide_rational_geometryQuadrance 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 · 426 examplesAlgebraic calculus
riptide_algebraic_calculusCalculus 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 · 149 examplesExact special functions
riptide_rational_specialSpecial 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 · 86 examplesDifferential geometry
riptide_geometryIndex-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 · 150 examplesTopology
riptide_topologyHomology and cohomology over the integers and Z/p, persistent homology (Vietoris–Rips, alpha, cubical), mapper, discrete Morse theory and 3-manifolds.
What GUDHI and Ripser do28 classes · 179 functions and methods · 144 examplesKnot theory
riptide_knotsLink 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 · 99 examplesGauge fields
riptide_rational_gaugeSuperconductivity 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 · 172 examplesLattice gauge theory
riptide_latticeU(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 · 50 examplesGeometry, physics and speed
Vectors, quaternions and matrices
riptide_mathAllocation-free vector, quaternion and matrix types over SIMD and typed data, spherical harmonics and low-discrepancy sequences.
77 classes · 697 functions and methods · 623 examplesThe CPU matrix unit
riptide_matrixMatrix 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 · 3 examplesSIMD helpers
riptide_simdSIMD helpers over Float32x4, Int32x4 and Float64x2 that compile to single NEON instructions on arm64.
6 classes · 105 functions and methods · 99 examplesArrays of value-class structs
riptide_structStructList: a fixed-length list of value-class instances stored contiguously, with no per-element objects.
1 classes · 7 functions and methods · 5 examplesPhysics
riptide_physicsRigid 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 · 277 examplesQuantum mechanics
riptide_rational_quantumThe 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 · 238 examplesRelativity
riptide_rational_relativitySpecial 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 · 74 examplesConics and quadrics
riptide_conicsConics and quadrics exactly over the rationals: cone sections, Dandelin spheres, foci and directrices.
19 classes · 157 functions and methods · 104 examplesKepler orbits
riptide_keplerKepler orbits turned into a harmonic oscillator and stepped exactly, next to the classic leapfrog and Kepler-equation methods.
11 classes · 81 functions and methods · 46 examplesVector search
riptide_vector_searchNearest neighbours by cosine similarity beside exact search by spread, on the CPU and the GPU.
26 classes · 135 functions and methodsPlain-text versions for tools and AI assistants: llms.txt and llms-full.txt.