TEND-BMAT(1)

πŸ“¦ version 1.11.0, in fedora 43, fedora 44

πŸ’– 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