runmat-runtime 0.4.1

Core runtime for RunMat with builtins, BLAS/LAPACK integration, and execution APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
# Remove trailing semicolon from each example's "output" field.
# Usage:
#   jq -f remove-output-semicolons.jq abs.json
#   for f in builtins-json/*.json; do jq -f remove-output-semicolons.jq "$f" > "$f.tmp" && mv "$f.tmp" "$f"; done
.examples |= map(
  if has("output") and (.output | type) == "string" then
    .output |= (if endswith(";") then .[0:-1] else . end)
  else
    .
  end
)