Reference#

The API, page by page, with every public name. The Guide explains the ideas behind them; these pages give each one's arguments, results, and errors in full.

  • Operations: the operations, grouped by category.

  • Results: what operations return, and any_of, one result for an implementation that may compute any of several expressions.

  • Data: arrays, exact values, formats, and rounding.

  • Algorithms: named ways of computing an operation, such as a fixed order of additions or a GPU's tensor cores, with their own bounds.

  • PyTorch equivalents: which ExactRef call checks which PyTorch call.

  • Errors: the exceptions ExactRef raises.

Every public name#

Name

Page

er.matmul, er.gemm

matmul, gemm

er.matrix_exp, er.matrix_exp_frechet

matrix_exp and matrix_exp_frechet

er.add, er.multiply, er.subtract

add, subtract, and multiply

er.divide, er.reciprocal

divide and reciprocal

er.sqrt, er.rsqrt

sqrt and rsqrt

er.exp, er.expm1, er.log, er.log1p

exp, expm1, log, and log1p

er.tanh

tanh

er.sigmoid

sigmoid

er.sum

sum

er.logsumexp

logsumexp

er.cumulative_sum

cumulative_sum

er.mean

mean

er.var

var

er.std

std

er.scaled_dot_product_attention

scaled_dot_product_attention

er.convolution

convolution

er.softmax, er.log_softmax

softmax and log_softmax

er.rms_norm, er.layer_norm, er.batch_norm

rms_norm, layer_norm, and batch_norm

er.fft.fft, er.fft.ifft, er.fft.rfft, er.fft.irfft, er.fft.hfft, er.fft.ihfft

fft, ifft, rfft, irfft, hfft, and ihfft

er.scatter_add

scatter_add

er.convert_float_format

convert_float_format

er.Result, er.Outputs, er.Boundary

Result

er.ExactArray, er.Enclosure

ExactArray and Enclosure

er.any_of

any_of

er.asarray, er.round_to_tf32, er.Array, er.MutableArray, er.FloatValue, er.ComplexValue

Arrays and values

er.FORMATS, er.get_format, er.Rounding, the format classes, and each format by name (er.float32, ...)

Formats and rounding

matmul_sequential, matmul_pairwise, matmul_blocked, matmul_exact_accumulation, matmul_slots16, and the classes they return, MatmulAlgorithm and MatmulSlots16 (in er.linalg.products)

Algorithms

er.MMAStep, matmul_mma, gemm_mma, and the classes they return, MatmulMMA and GemmMMA (in er.linalg.products)

Algorithms

er.nn.attention.AttentionAlgorithm

Algorithms

add_held_scalar, multiply_held_scalar, and the classes they return, AddHeldScalar and MultiplyHeldScalar (in er.arithmetic.basic)

Algorithms

reciprocal_estimate and the class it returns, ReciprocalEstimate (in er.arithmetic.basic)

Algorithms

rsqrt_direct, rsqrt_estimate, and the classes they return, RsqrtDirect and RsqrtEstimate (in er.elementary.power)

Algorithms

sqrt_polar and the class it returns, SqrtPolar (in er.elementary.power)

Algorithms

exp_algorithm, expm1_algorithm, log_algorithm, log1p_algorithm (in er.elementary.exp_log), tanh_algorithm (in er.elementary.hyperbolic), sigmoid_algorithm (in er.elementary.logistic), and the class they return, FunctionAlgorithm

Algorithms

softmax_algorithm, log_softmax_algorithm (in er.nn.softmax), logsumexp_algorithm (in er.reduction.arithmetic), and the classes they return, SoftmaxAlgorithm and LogsumexpAlgorithm

Algorithms

var_welford, std_welford, and the classes they return, VarWelford and StdWelford (in er.statistics.descriptive.dispersion)

Algorithms

rms_norm_algorithm, layer_norm_algorithm, batch_norm_algorithm, and the class they return, NormAlgorithm (in er.nn.normalization)

Algorithms

FFTAlgorithm, IFFTAlgorithm, RFFTAlgorithm, IRFFTAlgorithm, HFFTAlgorithm, IHFFTAlgorithm, and Bluestein (in er.fft.dft)

Algorithms

er.Algorithm, er.ErrorModel

Algorithms

er.accumulation

Algorithms

er.ReferenceUnavailableError, er.UnsupportedFormatError

Errors

Each operation is also under its category, such as er.linalg.products.matmul; Operations gives every operation's category.