Agentic Coding · Training · Numerical computing

Linear Algebra Code with Coding Agents: Training on Linear Systems, Factorisations and Conditioning

Have coding agents write matrix code that stays correct on large, sparse or ill-conditioned problems, and check it with tests that give you solid evidence.

  • Workshops & trainings since 2014
  • jocapps GmbH · Freiburg, Germany
  • The team behind Mathe-VollLogo
Format
Training
Duration
1 day (7.5 hours)
Delivery
Live online · On-site (in-house) · Hybrid
Group size
4–12 participants
Level
Intermediate
Language
German or English

Tools: Claude Code · Python · NumPy · SciPy · pytest

Coding agents write matrix code quickly, but they like to reach for the explicit inverse, mix up axes when broadcasting or miss that a matrix is close to singular. The script runs without errors and the result is still useless. This training shows how to get reliable linear algebra code with coding agents: let the agent choose and justify suitable solvers and factorisations, check condition numbers and residuals, handle sparse matrices properly and write tests that genuinely catch numerical errors. You work with NumPy and SciPy on problems from your field and build a rules file that holds your agent to these standards in future.

Who the linear algebra training is for

Engineers, data scientists, computing teams and lecturers who work with matrices in Python, for example in simulation, least-squares fitting, control engineering or image processing.

What you'll walk away with

  • Choose a suitable solver or factorisation for a linear system and have the agent justify the choice
  • Compute condition number, residual and backward error and judge how far a result can be trusted
  • Store and solve sparse matrices with SciPy without accidentally falling back to dense arithmetic
  • Write tests with constructed matrices of known properties and tolerances that match the conditioning
  • Maintain a rules file for the agent covering array shapes, data types and unwanted shortcuts

Typical scenarios

  1. An agent solved a least-squares fit through the normal equations; switching to a QR factorisation removes the unstable coefficients that appeared with nearly collinear measurement series.
  2. A finite-difference model with many unknowns ran painfully slowly because the agent had built a dense matrix; with sparse storage and a suitable solver it runs on a laptop again.
  3. A university chair has test cases with known spectra generated for its eigenvalue exercise, so that students can check their own implementations against them.

Does this fit your team?

Pick a few dates that suit you. The request is non-binding, and the agenda is tailored in a short call beforehand.

Request dates

What the linear algebra training covers

  1. Typical errors in agent-written matrix codeThe explicit inverse, wrong broadcasting axes, silent type conversions and confused row and column order, shown with real examples.
  2. Choosing solvers and factorisations deliberatelyLU, Cholesky, QR and the singular value decomposition: when each fits and how to get a reasoned choice from the agent.
  3. Conditioning, residuals and error estimatesYou measure how sensitive a problem is to perturbations and have results always reported with residual and backward error.
  4. Sparse and large systemsStorage formats in SciPy, iterative solvers, preconditioning and the question of when a dense computation is good enough.
  5. Tests and the rules fileTest matrices with known properties, justified tolerances and an instruction file that anchors these rules in the repository.

Before the linear algebra training: prerequisites

  • Basic Python and NumPy, and linear algebra at university level
  • A laptop with NumPy, SciPy and a coding agent cleared for use on your code
  • Optionally a script of your own with matrix computations you want to improve

Materials you keep

  • A decision guide for solvers and factorisations with typical use cases
  • Test templates for linear algebra with constructed matrices and justified tolerances
  • A rules file for coding agents with conventions for numerical matrix code

How it works

  1. Request with preferred datesTick the date proposals that suit you or name a period of your own.
  2. Short callWe talk about your goals, prior knowledge and the tools your team already uses.
  3. Agenda for your teamYou receive a plan tailored to your group, with exercises that match your subject and material.
  4. Course and materialsThe course runs online, on-site or hybrid, and you keep the materials afterwards.

Why train with us

  • jocapps GmbH has offered workshops and trainings since 2014. The topics have moved with the technology; today the focus is on agentic coding and prompt engineering.
  • Hands-on rather than slides: you practise on realistic examples from maths and STEM, or on your own tasks, code or prompts if you wish.
  • Online, on-site or hybrid, held in German or English.
  • jocapps GmbH is certified to ISO 27001 (information security) and ISO 9001 (quality management).

Questions about the linear algebra training

Is the training suitable for Julia or MATLAB users?

The examples run in Python with NumPy and SciPy. The principles of factorisations, conditioning and testing carry over directly to other languages, though. If you mainly work in Julia, the training on Julia simulations is a good companion.

How much theory is involved?

As much as you need to make decisions in code. We assume you know how the factorisations are derived and focus on how conditioning, stability and memory use show up in an actual program and how to measure them.

Do we work on our own code?

Gladly, as long as you are allowed to process it with an approved tool. Otherwise we provide realistic problems from least-squares fitting, structural mechanics and image processing that come close to typical engineering and research work.

Is the training held online or on-site, and in which language?

Both are possible: live online, at your premises (in-house) or hybrid. The course is held in German or English; you choose when you send the request.

Can the content be tailored to our team?

Yes. The agenda, examples and emphasis are agreed in the call beforehand, based on your team's prior knowledge, subjects and tools. On request we work with your own exercises, data or code.