Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

functax's skill shelf: one unit per public module

Design · the skill tree for a base library of several public modules

functax is the second library with a shelf, after gaussx, and the first whose public names sit in several public modules. The shelf itself lives in functax, under plugins/functax/ (jejjohnson/functax#154); this page records how its units were chosen and what the measurements say. The recipe lists the files of a shelf.

The units

functax has no single namespace: a caller imports functax.interp, functax.quad or functax.basis.sphere, never functax alone. So the units follow the public modules, one each (decided in #196), and a dependent that imports one module receives one card. A unit’s name here is its key in functax’s shelf.toml, which holds the title a reader sees: interp is “Interpolation”, quad is “Quadrature”.

Table 1:functax’s units, with the public names each holds. The functions of functax.basis.sphere and its sibling modules count for functax.basis.

UnitRungsHome bandSubpackagesNames
Geometry⓪numerics, geosciencefunctax.geometry 3131
Errors⓪numericsfunctax.filter 13, functax.exceptions 7, functax 121
Interp① ②, setupnumericsfunctax.interp 7070
Basis①numerics, MLfunctax.basis 5050
Quad⓪ ①numericsfunctax.quad 1313
Diffops①numericsfunctax.diffops 88
Project① ④numericsfunctax.project 44
Transformsetupnumericsfunctax.transform 66
All203

The listed skills

Three skills are listed, because a caller asks for them without mentioning the rest.

Listed skillUnitsEntries
function-approximation-with-functax, the front doorGeometry, Errors4
interpolation-with-functaxInterp5
bases-quadrature-and-transformsBasis, Quad, Diffops, Project, Transform7

Interpolation has a skill of its own because it holds 70 of the public names and is what most dependents come for. The five small modules share one skill: each is a few functions, and a task that fits a basis usually integrates or transforms as well.

Who uses what

Table 2:Names of each unit that each dependent package uses.

Dependent packageNames usedGeometryErrorsInterpBasisQuadDiffopsProjectTransform
geonnax15100100004
kernellib15200121000
tracerax1370501000
sesmax-core1200390000
pyrox-nn1010090000
vardax830230000
spectraldiffx710022002
gauss-flows-maps610500000
integrix610500000
pyrox-gp600060000
geotoolz-ops530200000
plumax520300000
pyrox-lgm530200000
geotoolz-array330000000
radtrax100010000

Table 3:The cards each dependent receives: a unit’s card goes to a package that uses three of its names, or subclasses one.

Dependent packageCardsAlso uses
geonnaxBasis; TransformGeometry (1)
kernellibBasisGeometry (2); Quad (1)
traceraxGeometry; InterpQuad (1)
sesmax-coreInterp; Basis
pyrox-nnBasisGeometry (1)
vardaxGeometry; BasisInterp (2)
spectraldiffxnoneGeometry (1); Basis (2); Quad (2); Transform (2)
gauss-flows-mapsInterpGeometry (1)
integrixInterpGeometry (1)
pyrox-gpBasis
geotoolz-opsGeometryInterp (2)
plumaxInterpGeometry (2)
pyrox-lgmGeometryInterp (2)
geotoolz-arrayGeometry
radtraxnoneBasis (1)

A package below the threshold on every unit receives no card, and its block names functax’s front door instead.