Marking some homework

Another box in the garage, another notebook.

This one is from 1996, my first year of doctoral study, and it runs to thirty pages of Krylov subspace methods — conjugate gradient, SYMMLQ and MINRES — worked from first principles out of a 1975 paper by Paige and Saunders.

These are methods for solving Ax = b when A is far too large to invert. You don’t solve the system. You build a small subspace, find the best answer available inside it, then grow the subspace and go again. MINRES is the one that comes with a guarantee: the error never gets worse. You can stop whenever you like and know you haven’t gone backwards.

I did it by hand from the paper. No internet. A biro, a lot of evenings, cheap instant coffee, and a serum nicotine level I am not presently proud of.

Claude and I checked it, thirty years late. Two passes — read every line and re-derive it, then implement the recurrences exactly as written and run them against a direct solve.

The kid held up. I’ll keep calling him that — thirty years is enough distance for the third person, and it lets me hand him the credit and keep the mistakes.

All three algorithms land on the exact answer to about fifteen decimal places, on well-behaved systems and on the nasty indefinite ones that make conjugate gradient fall over.

There are four errors in thirty pages, and not one of them is a wrong answer. Every one is a place where I asserted something true without a valid argument for it — a proof by obviously, where the obvious thing happened to be right. That is the better direction to fail in, and roughly what the next three years were for.

Twice he writes something down and admits he hasn’t earned it. I presume this could be sought by a little induction. I recommend verifying this progression formulation before implementing it! Both turn out to be correct. Knowing which of your own steps you haven’t proved is not nothing at twenty-one.

My favourite thing in there isn’t a mistake at all. Paige and Saunders describe a certain 2×2 matrix as a rotation. On page 8 the twenty-one-year-old has stopped, taken its determinant, got −1, and noted that it is in fact a reflection. He was right — and it pays, because reflections are their own inverse, and he leans on exactly that twice in the pages that follow. He didn’t take the paper’s word for it, and got something for the trouble.

The whole thirty pages exist to reach one line. Everything on the right of it is a sine, and no sine is bigger than one, so the residual is a shrinking product and cannot grow. The quantity that makes conjugate gradient blow up — a division by a cosine — cancels in the very last step.

I don’t remember writing the detail. I remember the nights.

The arithmetic is still good, and the notebook is a PDF now.


I’m not posting this out of vanity, and it isn’t a back-in-my-day grumble. There’s a point in it, and some questions.

Thirty years ago the price of a technical PhD was building your own toolbox. Not reading about the tools — deriving them, from the original papers, until you knew why they worked. This notebook and one other, on a Hamiltonian for two molecular fragments, levelled a small rainforest in scratch paper before I wrote out the 90+ pages of neat final versions.

None of it went into the thesis. Not a line. The algebra would have made far better eye candy than most of what did.

So: does anyone still work this way? Was it necessary, or was it ritual? And where does that work go, given it made me competent and made no publication?

I ask in hope rather than complaint. I want the answer to be yes, they still do — because I think that is how you build a scientist. You put in the work and it makes your mind stronger, even when the particular quest has nothing to do with where you end up.

Persymmetry, eventually

Back in my chemistry-PhD days — modelling how molecules fly apart — I kept running into a tidy sort of matrix called a circulant. I spotted a small pattern hiding in them and, around 2011, wrote it up. Then life did its thing: work, moves, the usual entropy. The write-up went in a drawer, and somewhere along the way I lost the original .tex file completely.

This year, with my stack finally empty (see: Writing again), I dug it out, rebuilt it from an ancient PDF, and checked the maths until the computer and I agreed to about twelve decimal places. Then I sent it to a journal. Desk-rejected — no review. I tried a second, a third, and a fourth.

Nobody quite warns you that this kind of rejection isn’t a ruling that you’re wrong. It’s a ruling that you’re not new enough. The result is correct, and apparently rather elegant — but circulants have been thoroughly adored by mathematicians for a century, and “correct and elegant” doesn’t always earn a slice of a journal’s attention. Fair enough.

I could have kept knocking on doors. I didn’t fancy it. (arXiv, the usual home for these things, now wants an institutional sponsor I don’t have — the perks of being an unaffiliated, semi-retired bloke who does crowd control for beer Sprite money.) So I did the unglamorous, oddly liberating thing and published it myself, with a proper DOI, free for anyone to read.

It’s finished. It exists. It has my name on it and a permanent address. That’ll do.

→ Spectral persymmetry of complex circulant and skew-circulant matrices

Amorosity now: part 1

Dance for money? No.

As a semi-retired 50-something, I make a bit of beer money doing crowd control. (Not that I drink any more; approaching 4 years sober, yay!) Lots of walking most nights, and usually I’m teamed up with a person I’ve never met before. It would be awkward to stay silent for 6+ hours, so interesting conversations nearly always evolve during the course of a long shift.

Recently, my walking partner for the night was asking where to find alternatives to sporadic event work. I welcomed the question, given it diverged from the standard ‘MMA beats boxing, yeah?’ and explained the various possibilities: construction site security, mobile patrols, pubs, and… strip joints.

“Do you work in a strip club, too, bro?”
“No, I don’t think many people would pay to see me semi-naked.”
“C’mon, I meant as a guard.”
“Right. I see ads now and again. Occasionally, I’m tempted.”
“And?”
“I never apply.”
“I see. Oh, you have a wedding band. I guess it would upset your wife.”
“It wouldn’t. No.”
“Really?”
“I’ve run the idea past her a few times, and she seems okay with it.”
“So what’s stopping you?”
“My wife.”
“I don’t follow.”
“The first time I canvassed the idea I got a green light. This was unexpected.”
“I bet.”
“Indeed. So I asked if she was worried I might ogle some of working ladies.”
“And was she?”
“No. And, to follow up, I did ask *why* she wasn’t worried.”
“What did she say?”
“She asked if ever wore glasses on shift. And I said rarely; only when checking IDs.”
“A workplace health and safety thing, surely.”
“Spot on. So she made the point that I wouldn’t be staring with much accuracy.”
“Hah!”
“Yeah, I conceded a valid point. At best, I’d be looking at heavily-pixelated dancers.”
“And that was the end of it?”
“It was not. A few months later, I was tempted to apply at a strip club.”
“And you got another green light?”
“Bingo. Which lead to another question.”
“Eyesight related?”
“No. I asked if she was worried one of the ladies might, you know, take a shine to me.”
“And?”
“She fainted with laughter.”

She’s still laughing.

I’m still trying to read the heating instructions for my microwave meal.