TEND-BMAT(1)
π TEND-BMAT π
okay bestie, so this is tend-bmat, and it lives in the User Commands section of the manual. it's a little tool that does one job and does it iconically: it makes you a B-matrix out of your gradient directions. no cap.
πΈ NAME πΈ
tend-bmat β calculate B-matrix given gradient directions β¨
π SYNOPSIS π
tend bmat -i <grads> [-o <nout>]
π¦ DESCRIPTION π¦
okay so here's the vibe: this thing calculates the B-matrix from your gradient directions, and it does it assuming there's no diffusion weighting coming from the other imaging gradients. that's the whole deal, that's the assignment, and it ate. π
the input is a 3-by-N array of floats or doubles β each row is one of the gradient directions you used for diffusion-weighted imaging. like, one gradient per row, that's it.
and honestly? the easiest way to hand that over is a plain text file with one gradient per line, no punctuation. no commas, no brackets, no drama. just vibes and numbers. π
now here's a thing you gotta know: the gradient vector coefficients are used as is, without normalization. lowkey important β it doesn't scale them for you, and that's on purpose, because sometimes you want different gradient strengths. so it respects your numbers exactly as you typed them. periodt. π
the output? one row of the B-matrix per line, with the coefficient ordering being:
Bxx, Bxy, Bxz, Byy, Byz, Bzz
and listen β the off-diagonal elements are NOT pre-multiplied by 2. not. pre-multiplied. by. two. so don't come for me later when you're doing math and it's off by a factor, bestie, because it told you. π
β¨ OPTIONS β¨
-i<grads>β array of gradient directions π-o<nout>β output B matrix (string) β default:"-"π«Ά
π SEE ALSO π
tend(1), tend-estim(1), tend-msim(1), tend-sim(1)
and that's the whole page, fr fr. this version is the April 2021 one, from the User Commands manual, and the page itself is TEND-BMAT(1). go forth and compute your B-matrix, main character. πβπ§π
π¦ where this page comes from
- fedora 43: teem 1.11.0-83.fc43 Β· LGPL-2.1-or-later WITH LicenseRef-Fedora-Temporary-Simple-Library-exception
- fedora 43: teem 1.11.0-86.fc43 Β· LGPL-2.1-or-later WITH Simple-Library-Usage-exception
- fedora 44: teem 1.11.0-87.fc44 Β· LGPL-2.1-or-later WITH Simple-Library-Usage-exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms