Reference

Operations catalog

The registry currently exposes 267 operations across the domains of dense linear algebra, tensor primitives, statistical transforms, elementary and transcendental scalar mathematics, curated physical and mathematical constants, financial-data retrieval and portfolio primitives, and tabular data ingest. Signatures below are generated directly from the operation registry; each argument is annotated with its type and, where applicable, a default value.

§1

Overview

The catalog is organised thematically below, rather than by dotted path. Each operation adheres to a common contract: it accepts a typedargumentsobject, produces a single output bound to the caller's as placeholder, and incurs a fixed ECU cost proportional to arithmetic complexity and problem size. Argument validation occurs statically, before any dispatch to the compute backend.

Type labels used in the signatures below have their customary meanings: number and integer for numeric scalars; boolean, string; matrix denotes a two-dimensional numerical array (either an array of typed arrays or an array of arrays of numbers); enum denotes a value restricted to a fixed set of literals — the numeric parameter in parentheses indicates the size of the enumeration. Every operation also accepts an optional safe: boolean argument (defaulting to true) that toggles per-call input revalidation; setting it to false skips the redundant validation in performance-critical inner loops.

§2

Matrix construction and shape

Constructors for standard matrices — zero, identity, random draws with optional uniqueness constraints, triangular random matrices — together with utilities for replication, reshaping, dimensional query, and copying. Predicate operations distinguish squares, symmetries, and matrix-typed values.

OperationSignature
math.matrix.zerosrows: integer | number, columns: integer | number, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.identityn: integer | number, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.identityLikerows: integer | number, columns: integer | number, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.randomrows: integer | number, columns: integer | number, from?: number = 0, to?: number = 1, type?: enum(10) = "generic", seed?: number, safe?: boolean = true
math.matrix.uniqueRandomrows: integer | number, columns: integer | number, from?: number = 0, to?: number = 1, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.randomLowerTriangularrows: integer | number, columns: integer | number, from?: number = 0, to?: number = 1, type?: enum(10) = "generic", seed?: number, safe?: boolean = true
math.matrix.randomUpperTriangularrows: integer | number, columns: integer | number, from?: number = 0, to?: number = 1, type?: enum(10) = "generic", seed?: number, safe?: boolean = true
math.matrix.uniqueRandomLowerTriangularrows: integer | number, columns: integer | number, from?: number = 0, to?: number = 1, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.uniqueRandomUpperTriangularrows: integer | number, columns: integer | number, from?: number = 0, to?: number = 1, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.replicatevalue: number, rows: integer | number, columns: integer | number, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.reshapex: matrix, rows: integer | number, columns: integer | number, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.copym: number[][], type?: enum(10) = "generic", safe?: boolean = true
math.matrix.flattenizex: matrix, type?: enum(10) = "float64", safe?: boolean = true
math.matrix.dimensionsm: number[][], safe?: boolean = true
math.matrix.isMatrixm: any, safe?: boolean = true
math.matrix.isSquarem: number[][], safe?: boolean = true
math.matrix.isSymmetricx: matrix, safe?: boolean = true
math.matrix.zeron: integer | number, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.toDiagonalMatrixx: matrix, type?: enum(10) = "generic", safe?: boolean = true
§3

Element-wise operations

Operations that act point-wise on matrix entries. Arithmetic includes the standard field operations together with the Hadamard product and specialised multiplications between triangular factors. Elementary mathematical functions and their inverses and hyperbolic variants are provided in element-wise form. Comparison and logical operations return matrices of Boolean or 0/1 entries suitable for masking.

Arithmetic
OperationSignature
math.matrix.plusx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.minusx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.timesx: number | matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.dividex: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.negatex: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.powerx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.modulusx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.Hadamardx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.multiplyLLx: matrix, y: matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.multiplyLUx: matrix, y: matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.multiplyULx: matrix, y: matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.multiplyUUx: matrix, y: matrix, type?: enum(10) = "generic", safe?: boolean = true
Mathematical functions
OperationSignature
math.matrix.absx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.sqrtx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.expx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.logx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.sinx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.cosx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.tanx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.cotanx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.sinhx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.coshx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.tanhx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.cotanhx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.arcsinx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.arccosx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.arctanx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.arccotanx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.ceilx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.floorx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.roundx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
Comparison, logical, bitwise
OperationSignature
math.matrix.eqx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.neqx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.gtx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.geqx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.ltx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.leqx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.isEqualTox: matrix, y: matrix, safe?: boolean = true
math.matrix.isNearlyEqualTox: matrix, y: matrix, threshold?: number, norm?: enum(7) = "Euclidean", safe?: boolean = true
math.matrix.isGreaterThanx: matrix, y: matrix, safe?: boolean = true
math.matrix.isGreaterThanOrEqualx: matrix, y: matrix, safe?: boolean = true
math.matrix.isLessThanx: matrix, y: matrix, safe?: boolean = true
math.matrix.isLessThanOrEqualx: matrix, y: matrix, safe?: boolean = true
math.matrix.andx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.orx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.xorx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.bitwiseAndx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.bitwiseOrx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.bitwiseNegatex: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.leftShiftByx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.rightShiftByx: matrix, y: number | matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.stepx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.superiorx: matrix, safe?: boolean = true
math.matrix.inferiorx: matrix, safe?: boolean = true
§4

Aggregations and norms

Reductions along rows, columns, or the entire matrix — sums, sums-of-squares, absolute sums, minima and maxima, together with diagonal-exclusion variants of the same. Induced and Frobenius norms are exposed as first-class operations.

OperationSignature
math.matrix.sumOfAllElementsx: matrix, safe?: boolean = true
math.matrix.sumOfSquaresOfAllElementsx: matrix, safe?: boolean = true
math.matrix.sumOfCubesOfAllElementsx: matrix, safe?: boolean = true
math.matrix.productOfAllElementsx: matrix, safe?: boolean = true
math.matrix.sumOfRowElementsx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.sumOfColumnElementsx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.sumOfRowElementsExceptDiagonalx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.sumOfColumnElementsExceptDiagonalx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.sumOfSquaresOfRowElementsx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.sumOfSquaresOfColumnElementsx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.sumOfSquaresOfRowElementsExceptDiagonalx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.sumOfSquaresOfColumnElementsExceptDiagonalx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.absoluteSumOfRowElementsx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.absoluteSumOfColumnElementsx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.absoluteSumOfRowElementsExceptDiagonalx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.absoluteSumOfColumnElementsExceptDiagonalx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.maxRowElementsx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.maxColumnElementsx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.maxRowElementsExceptDiagonalx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.maxColumnElementsExceptDiagonalx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.minRowElementsx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.minColumnElementsx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.minRowElementsExceptDiagonalx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.minColumnElementsExceptDiagonalx: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.FrobeniusNormx: matrix, safe?: boolean = true
math.matrix.infinityNormx: matrix, safe?: boolean = true
math.matrix.maxNormx: matrix, safe?: boolean = true
§5

Structural manipulation

Operations that read or modify structural regions of a matrix — rows, columns, arbitrary rectangular blocks, and diagonals — together with the family of vector-broadcast operations that add, subtract, multiply or divide a vector across a chosen matrix axis.

OperationSignature
math.matrix.transposex: matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.inversex: matrix, method?: "Gauss" | "LU" = "Gauss", type?: enum(10) = "generic", safe?: boolean = true
math.matrix.invertedx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.getRowx: matrix, rowIndex: integer, fromColumnIndex?: integer, toColumnIndex?: integer, safe?: boolean = true
math.matrix.setRowx: matrix, row: matrix, rowIndex: integer, fromColumnIndex: integer, toColumnIndex: integer, safe?: boolean = true
math.matrix.getBlockx: matrix, from: integer[], to: integer[], type?: enum(10) = "generic", safe?: boolean = true
math.matrix.setBlockx: matrix, from: integer[], to: integer[], block: matrix, safe?: boolean = true
math.matrix.appendBlockRightx: matrix, block: matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.appendBlockBottomx: matrix, block: matrix, type?: enum(10) = "generic", safe?: boolean = true
math.matrix.exchangeRowsx: matrix, row1: integer, row2: integer, fromColumn?: integer, toColumn?: integer, safe?: boolean = true
math.matrix.exchangeColumnsx: matrix, col1: integer, col2: integer, fromRow?: integer, toRow?: integer, safe?: boolean = true
math.matrix.getDiagonalx: matrix, row?: integer, type?: enum(10) = "generic", mode?: string, safe?: boolean = true
math.matrix.setDiagonalToNumberx: matrix, y: number, safe?: boolean = true
math.matrix.setDiagonalToRowVectorx: matrix, y: matrix, safe?: boolean = true
math.matrix.setDiagonalToColumnVectorx: matrix, y: matrix, safe?: boolean = true
math.matrix.addNumberToDiagonalx: matrix, y: number, safe?: boolean = true
math.matrix.addRowVectorToDiagonalx: matrix, y: matrix, safe?: boolean = true
math.matrix.addColumnVectorToDiagonalx: matrix, y: matrix, safe?: boolean = true
math.matrix.addVectorToMatrixByRowAxisx: matrix, y: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.addVectorToMatrixByColumnAxisx: matrix, y: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.subtractVectorFromMatrixByRowAxisx: matrix, y: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.subtractVectorFromMatrixByColumnAxisx: matrix, y: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.pointwiseMultiplyMatrixWithVectorByRowAxisx: matrix, y: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.pointwiseMultiplyMatrixWithVectorByColumnAxisx: matrix, y: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.pointwiseDivideMatrixWithVectorByRowAxisx: matrix, y: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
math.matrix.pointwiseDivideMatrixWithVectorByColumnAxisx: matrix, y: matrix, type?: enum(10) = "generic", mode?: "row" | "column" = "row", safe?: boolean = true
§6

Dense linear algebra

The customary matrix decompositions and related reductions. Each operation returns a structured value carrying the factor matrices and, where applicable, permutation data.

OperationSignature and description
math.matrix.LUPCx: matrix, safe?: boolean = true
LU decomposition with partial column pivoting.
math.matrix.LDLx: matrix, type?: enum(10) = "generic", safe?: boolean = true
LDLᵀ decomposition of a symmetric matrix.
math.matrix.LLx: matrix, secure?: boolean = true, safe?: boolean = true
Cholesky (LLᵀ) decomposition of a symmetric positive-definite matrix.
math.matrix.QRx: matrix, method?: enum(5) = "Householder", safe?: boolean = true
QR decomposition; produces an orthonormal Q and upper-triangular R.
math.matrix.svdx: matrix, copy?: boolean = true, sort?: boolean = true, type?: enum(10) = "generic", safe?: boolean = true
Singular value decomposition; returns U, Σ, Vᵀ.
math.matrix.eigenproblemx: matrix, method?: "HQR" | "HQR2" | "JacobiSymmetric" = "HQR", balance?: boolean = true, sort?: boolean = true, type?: enum(10) = "generic", safe?: boolean = true
Eigenvalues and eigenvectors of a square matrix.
math.matrix.toUpperHessenbergx: matrix, safe?: boolean = true
Orthogonal reduction to upper-Hessenberg form; a standard pre-processing step for eigenvalue algorithms.
math.matrix.balancex: matrix, safe?: boolean = true
Similarity balancing of a matrix, reducing the condition number of the eigenvalue problem.
math.matrix.GershgorinCirclesx: matrix, type?: enum(10) = "generic", safe?: boolean = true
Gershgorin discs, providing enclosure estimates for the spectrum.
§7

Iterative and specialised solvers

Building blocks for user-composed iterative procedures — a single step of the operation, exposed so that the caller can compose convergence tests, adaptive schedules, and stopping criteria within the DAG itself. Initial-approximation operations are supplied for the iterative inversion families.

OperationSignature and description
math.matrix.powerMethodIterationx: matrix, y?: matrix, type?: enum(10) = "generic", safe?: boolean = true
One step of the power method for dominant eigenpair estimation.
math.matrix.shiftedPowerMethodIteratonx: matrix, y?: matrix, shift?: number = 1, type?: enum(10) = "generic", safe?: boolean = true
Shifted power iteration for accelerated convergence.
math.matrix.numericalInverseStepSchulzx: matrix, y: matrix, type?: enum(10) = "generic", safe?: boolean = true
Schulz iteration for iterative matrix inversion.
math.matrix.numericalInverseStepLiAndLix: matrix, y: matrix, type?: enum(10) = "generic", safe?: boolean = true
Li–Li iteration for matrix inversion.
math.matrix.numericalInverseStepLiEtAlx: matrix, y: matrix, type?: enum(10) = "generic", safe?: boolean = true
Li et al. iteration for matrix inversion.
math.matrix.numericalInverseStepSoleymaniAndToutounianx: matrix, y: matrix, type?: enum(10) = "generic", safe?: boolean = true
Soleymani–Toutounian iteration for matrix inversion.
math.matrix.initialInverseApproximationBenIsraelGrevillex: matrix, type?: enum(10) = "generic", safe?: boolean = true
Ben-Israel–Greville initial approximation for iterative inversion.
math.matrix.initialInverseApproximationCodevicox: matrix, type?: enum(10) = "generic", safe?: boolean = true
Codevico initial approximation.
math.matrix.initialInverseApproximationGroszx: matrix, type?: enum(10) = "generic", safe?: boolean = true
Grosz initial approximation.
math.matrix.initialInverseApproximationPanSchreiberx: matrix, type?: enum(10) = "generic", safe?: boolean = true
Pan–Schreiber initial approximation.
§8

Neural-network primitives

Discrete convolution, pooling, and the activation functions used in contemporary architectures, expressed at matrix scale so that they compose naturally with the linear-algebra operations above.

OperationSignature and description
math.matrix.Conv2Dx: matrix, kernel: matrix, bias?: number = 0, stride?: integer = 1, padding?: integer = 0, type?: enum(10) = "generic", safe?: boolean = true
Two-dimensional discrete convolution over a matrix input.
math.matrix.Convolution2Dx: matrix, kernel: matrix, bias?: number = 0, stride?: integer = 1, padding?: integer = 0, type?: enum(10) = "generic", safe?: boolean = true
Alternative 2-D convolution formulation.
math.matrix.poolingx: matrix, width: integer, height: integer, method?: "max" | "average" = "max", type?: enum(10) = "generic", safe?: boolean = true
Pooling reduction over a rectangular window.
math.matrix.poolingDerivativex: matrix, width: integer, height: integer, type?: enum(10) = "generic", safe?: boolean = true
Derivative of the pooling operator for back-propagation.
math.matrix.ReLUx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
Rectified linear activation applied element-wise.
math.matrix.LeakyReLUx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
Leaky rectified linear activation.
math.matrix.ELUx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
Exponential linear activation.
math.matrix.sigmoidx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
Logistic sigmoid, element-wise.
math.matrix.softmaxx: matrix, mode?: "row" | "column" = "row", type?: enum(10) = "generic", safe?: boolean = true
Softmax normalisation along a chosen axis.
math.matrix.logitx: matrix, weight?: number = 1, bias?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
Logit (inverse sigmoid), element-wise.
§9

Statistical transforms

Variance-stabilising and normality-inducing transformations applied element-wise to a matrix.

OperationSignature and description
math.matrix.BoxCoxx: matrix, weight?: number = 1, bias?: number = 0, lambda?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
Box–Cox power transform for variance-stabilising a positive-valued series.
math.matrix.YeoJohnsonx: matrix, weight?: number = 1, bias?: number = 0, lambda?: number = 0, type?: enum(10) = "generic", safe?: boolean = true
Yeo–Johnson power transform, defined on the full real line.
§10

Scalar mathematical functions

The scalar counterparts of the element-wise matrix operations, exposed under the math.operations namespace. These are the primitives of choice inside guard expressions on edges, where a single-value predicate is required.

Arithmetic
OperationSignature
math.operations.plusx: number, y: number, safe?: boolean = true
math.operations.minusx: number, y: number, safe?: boolean = true
math.operations.timesx: number, y: number, safe?: boolean = true
math.operations.dividex: number, y: number, safe?: boolean = true
math.operations.modx: number, y: number, safe?: boolean = true
math.operations.powerbase: number, exponent: number, safe?: boolean = true
math.operations.absx: number, safe?: boolean = true
math.operations.signx: number, safe?: boolean = true
math.operations.maxx: number, y: number, safe?: boolean = true
math.operations.minx: number, y: number, safe?: boolean = true
math.operations.hypotx: number, y: number, safe?: boolean = true
math.operations.clampx: number, min: number, max: number, safe?: boolean = true
math.operations.roundx: number, safe?: boolean = true
math.operations.floorx: number, safe?: boolean = true
math.operations.ceilx: number, safe?: boolean = true
math.operations.truncx: number, safe?: boolean = true
Trigonometric and hyperbolic
OperationSignature
math.operations.sinx: number, safe?: boolean = true
math.operations.cosx: number, safe?: boolean = true
math.operations.tanx: number, safe?: boolean = true
math.operations.asinx: number, safe?: boolean = true
math.operations.acosx: number, safe?: boolean = true
math.operations.atanx: number, safe?: boolean = true
math.operations.atan2y: number, x: number, safe?: boolean = true
math.operations.sinhx: number, safe?: boolean = true
math.operations.coshx: number, safe?: boolean = true
math.operations.tanhx: number, safe?: boolean = true
Exponential, logarithmic, root
OperationSignature
math.operations.expx: number, safe?: boolean = true
math.operations.expm1x: number, safe?: boolean = true
math.operations.logx: number, base?: number, safe?: boolean = true
math.operations.log2x: number, safe?: boolean = true
math.operations.log10x: number, safe?: boolean = true
math.operations.log1px: number, safe?: boolean = true
math.operations.sqrtx: number, safe?: boolean = true
math.operations.cbrtx: number, safe?: boolean = true
Comparison, logical, bitwise
OperationSignature
math.operations.andx: boolean, y: boolean, safe?: boolean = true
math.operations.orx: boolean, y: boolean, safe?: boolean = true
math.operations.xorx: integer, y: integer, safe?: boolean = true
math.operations.notx: boolean, safe?: boolean = true
math.operations.eqx: any, y: any, safe?: boolean = true
math.operations.neqx: any, y: any, safe?: boolean = true
math.operations.gtx: number | string, y: number | string, safe?: boolean = true
math.operations.geqx: number | string, y: number | string, safe?: boolean = true
math.operations.ltx: number | string, y: number | string, safe?: boolean = true
math.operations.leqx: number | string, y: number | string, safe?: boolean = true
math.operations.shiftx: integer, y: integer, safe?: boolean = true
math.operations.unshiftx: integer, y: integer, safe?: boolean = true
Activation functions
OperationSignature
math.operations.relux: number, safe?: boolean = true
math.operations.leakyRelux: number, alpha?: number = 0.01, safe?: boolean = true
math.operations.elux: number, alpha?: number = 1, safe?: boolean = true
math.operations.selux: number, safe?: boolean = true
math.operations.gelux: number, safe?: boolean = true
math.operations.mishx: number, safe?: boolean = true
math.operations.swishx: number, beta?: number = 1, safe?: boolean = true
math.operations.softplusx: number, safe?: boolean = true
math.operations.sigmoidx: number, safe?: boolean = true
math.operations.hardSigmoidx: number, safe?: boolean = true
math.operations.stepx: number, threshold?: number = 0, safe?: boolean = true
§11

Physical and mathematical constants

A curated collection of numerical constants. Each is a nullary operation returning a scalar value; SI base units are assumed throughout for the physical quantities.

Mathematical
OperationSignature
math.constants.pisafe?: boolean = true
math.constants.tausafe?: boolean = true
math.constants.esafe?: boolean = true
math.constants.phisafe?: boolean = true
math.constants.sqrt2safe?: boolean = true
math.constants.ln2safe?: boolean = true
math.constants.ln10safe?: boolean = true
math.constants.eulerMascheronisafe?: boolean = true
math.constants.aperysafe?: boolean = true
math.constants.catalansafe?: boolean = true
math.constants.epsilonsafe?: boolean = true
math.constants.infinitysafe?: boolean = true
math.constants.negativeInfinitysafe?: boolean = true
math.constants.nansafe?: boolean = true
math.constants.maxSafeIntegersafe?: boolean = true
math.constants.minSafeIntegersafe?: boolean = true
Physical
OperationSignature
math.constants.speedOfLightsafe?: boolean = true
math.constants.plancksafe?: boolean = true
math.constants.hbarsafe?: boolean = true
math.constants.boltzmannsafe?: boolean = true
math.constants.avogadrosafe?: boolean = true
math.constants.faradaysafe?: boolean = true
math.constants.gasConstantsafe?: boolean = true
math.constants.gravitationalsafe?: boolean = true
math.constants.stefanBoltzmannsafe?: boolean = true
math.constants.rydbergsafe?: boolean = true
math.constants.fineStructuresafe?: boolean = true
math.constants.vacuumPermeabilitysafe?: boolean = true
math.constants.vacuumPermittivitysafe?: boolean = true
math.constants.electronMasssafe?: boolean = true
math.constants.protonMasssafe?: boolean = true
math.constants.neutronMasssafe?: boolean = true
math.constants.electronChargesafe?: boolean = true
math.constants.atomicMassUnitsafe?: boolean = true
math.constants.bohrRadiussafe?: boolean = true
math.constants.standardGravitysafe?: boolean = true
Astronomical
OperationSignature
math.constants.astronomicalUnitsafe?: boolean = true
math.constants.lightYearsafe?: boolean = true
math.constants.parsecsafe?: boolean = true
math.constants.earthMasssafe?: boolean = true
math.constants.earthRadiussafe?: boolean = true
math.constants.solarMasssafe?: boolean = true
§12

Financial operations

Market-data retrieval, return computation, index-constituent management, and mean–variance-style portfolio primitives. These operations are typically composed into multi-node graphs in which an initial retrieval node feeds a downstream optimisation node.

OperationSignature and description
finance.getSymbolsMatrixFromYahooFinancesymbols: string[], interval: enum(8), requiredValue: enum(5), from?: number, to?: number, fill?: "ffill" | "intersect" | "none" = "ffill", includeDate?: boolean = false
Retrieves a matrix of historical prices or returns for a specified set of ticker symbols and a date range from Yahoo Finance.
finance.computeReturnsprices: any, method?: "simple" | "log" = "log"
Computes arithmetic or logarithmic returns from a price matrix.
finance.getIndexConstituentsindex: "SP500" | "NASDAQ100" | "DOW30"
Returns the current constituent members of a market index.
finance.filterConstituentsconstituents: any, from: number, to: number, interval: "1d" | "1wk" | "1mo", metric: "return" | "volatility", direction: "top" | "bottom", mode: "n" | "pct" | "per_sector_n" | "per_sector_pct", value: number
Filters an index-constituent set by user-supplied criteria (e.g. sector, market capitalisation).
finance.sampleConstituentsconstituents: any, mode: "random_n" | "random_pct" | "per_sector_n" | "per_sector_pct", value: number, seed?: number
Draws a random subset from an index-constituent set.
finance.minimumVariancePortfolioprices: any, interval?: "1d" | "1wk" | "1mo" = "1d", method?: "simple" | "log" = "log", riskFreeRate?: number = 0, longOnly?: boolean = true, symbols?: string[]
Solves for the minimum-variance portfolio weights subject to standard constraints.
finance.maximumSharpePortfolioprices: any, interval?: "1d" | "1wk" | "1mo" = "1d", method?: "simple" | "log" = "log", riskFreeRate?: number = 0, longOnly?: boolean = true, symbols?: string[]
Solves for the portfolio weights that maximise the Sharpe ratio for a given risk-free rate.
finance.minimumCVaRPortfolioprices: any, interval?: "1d" | "1wk" | "1mo" = "1d", method?: "simple" | "log" = "log", riskFreeRate?: number = 0, longOnly?: boolean = true, symbols?: string[], alpha?: number = 0.95
Solves for the portfolio weights that minimise the conditional value-at-risk at a given confidence level.
finance.efficientFrontierprices: any, interval?: "1d" | "1wk" | "1mo" = "1d", method?: "simple" | "log" = "log", riskFreeRate?: number = 0, longOnly?: boolean = true, symbols?: string[], numPoints?: number = 20
Traces the efficient frontier in mean–variance space.
§13

Data ingest

Operations for the introduction of external data into a computation. File-consuming operations reference an entry-node input under the filePath argument; the mechanisms for supplying such a file — multipart form-data and pre-uploaded references — are documented on the DAG schema page.

OperationSignature and description
data.readExcelfilePath: string, sheet?: string, range?: string, operation?: string = "readFile"
Reads a sheet (or a specified range) of an Excel workbook into a structured value.
data.writeExceldata: string | number | boolean | null[][], name?: string, header?: string | number | boolean | null[], sheetName?: string
Writes a structured value back to an Excel workbook.