Skip to content

Symbols and notation ​

This page maps the mathematical notation to the arrays used by HighOrderMRI. Use it alongside the encoding model for physical phase conventions and the low-rank derivation for the algorithm. Unless a page explicitly states a local convention, the same symbol has the same meaning throughout the documentation.

The readouts indexed by i encode one unknown image. The shared rSVD notation below distinguishes the completed incremental representation (superscript (0) and rank R0) from the final representation after optional recompression (rank R).

Indices and sizes ​

SymbolMeaning
iReadout (encoding profile): dynamic, interleave, shot, or repeated encoding of the same unknown image
jADC sample index within dynamic i
vMasked reconstruction-voxel index
cReceive-coil index
ℓSolid-harmonic basis-term index
rShared-mode index; qr and sr are columns of the stacked temporal matrix and spatial basis
NtNumber of ADC samples per readout (nSam)
NroNumber of readouts (nDyn)
NvNumber of voxels inside the reconstruction mask, count(mask)
aSpatial-axis index, x/y/z; distinct from readout i
NaNumber of grid points along spatial axis a
NgridFull image-grid size, prod(grid.matrixSize); includes masked-out voxels
NcNumber of receive channels after any coil compression
LRetained local per-profile rank (L_rank)
pAdditional sketch directions (rsvd_oversample); sketch width is L+p
R0Completed incremental shared rank before optional global recompression
RFinal shared spatial rank; R=R0 when global recompression is disabled

Physical and image-domain quantities ​

SymbolMeaningTypical units / dimensions
r=(x,y,z)TPhysical voxel coordinatem when the grid is specified in metres
rvCoordinate of masked voxel vm
m(r), mvComplex transverse magnetization / masked image value; shared by all profilesarbitrary signal units
Cc(r), CvcReceive sensitivity of coil ccomplex relative sensitivity
Δf0(r), Δf0,vStatic off-resonance mapHz when time is in s
bℓ(r), bℓ,vReal solid-harmonic spatial basis functiondepends on harmonic order and coordinate units
ΔaPhysical voxel spacing along axis am or another consistently used length unit

Dynamic field and phase quantities ​

SymbolMeaningTypical units
aℓ,i(t)Instantaneous coefficient of solid-harmonic term ℓHz per basis unit
kℓ,i(t)Time-integrated coefficient ∫aℓ,i(τ)dτcycles per basis unit
k0,jiZeroth-order spatially uniform accumulated phasecycles
kjiFirst-order accumulated coefficients along x/y/z; Fourier encoding uses the active subsetreciprocal physical length
IActive Fourier axes: x/y for nZ == 1, x/y/z otherwiseaxis set
HModeled higher-order solid-harmonic rows, 5 through nTermrow set
RResidual rows: H in 3D; {4}∪H in 2Drow set
ϕcon,iAdditional accumulated concomitant phasecycles
Φi(r,t)Total accumulated encoding phase before multiplication by 2πcycles
tjiADC sampling time of sample j in dynamic is when Δf0 is in Hz
ξa,jiNFFT node −ka,jiΔa for active axis adimensionless
d0,jiZeroth-order modulation exp⁡(i2πk0,ji)complex unit modulus
cctr,jiParity-dependent NFFT centre correction, or one when disabledcomplex unit modulus

In the implementation, the time-integrated coefficients kℓ,i(t) are stored in kspha. Convert field-camera phase from radians to cycles before supplying it; the encoding constructors do not integrate instantaneous fields or perform this conversion. The physical first-order dot product uses x/y/z; the NFFT uses only axes in I. In 2D, the z term stays in R and is counted once. See the coordinate scope for the Cartesian-grid contract.

Encoding matrices and operators ​

SymbolMeaningDimensions
D0,iDiagonal zeroth-order temporal modulationNt×Nt
FiFirst-order Fourier encoding matrixNt×Nv
FFirst-order Fourier/NFFT encoding stacked over readouts, with full-grid embedding of masked inputssample space ← image grid
HiResidual phase matrix containing static off-resonance and non-NFFT field termsNt×Nv
EiComplete single-dynamic spatial encoding matrix, excluding coil multiplication and the symmetric normalizationNt×Nv
CcDiagonal matrix of receive sensitivities for coil cNv×Nv
AcEncoding operator for coil c, including mask support and normalization(NtNro)×Ngrid
AMulti-coil encoding operator, with profile blocks stacked within each coil(NtNroNc)×Ngrid
WDiagonal operator of raw reconstruction weights, repeated over coils by recon_HOOp(NtNroNc)×(NtNroNc)
D=WHWNonnegative diagonal normal weights, with entries $w

The weighted normal operator is written

AHWHWA.

For real non-negative square-root density weights, WHW=W2. For complex raw weights use WHW, whose diagonal is abs2.(weight).

recon_HOOp applies the raw weights to both the data and A; pass the raw weights once. The lower-level normalOperator(op, weights2) convention instead expects the already squared real nonnegative diagonal entries of D. See reconstruction weights and the weighted-normal API for the relevant call conventions. The data normal excludes any regularization term chosen by the solver.

Low-rank quantities ​

The local rSVD sketch width is Lsk=L+p≤min(Nt,Nv); ℓ is reserved for the solid-harmonic row index. Bi below is HiHQi, the projected adjoint matrix.

SymbolMeaningDimensions
ΩiRandom test matrix used by rSVDNv×Lsk
Yi=HiΩiRandomized range sketchNt×Lsk
QiOrthonormal basis for the randomized rangeNt×Lsk
QiaddAppended residual modes, equal to Si,new; distinct from the range basis QiNv×ri
Bi=HiHQiProjected adjoint matrixNv×Lsk
Ui,LRetained local sample-domain factorNt×L
V~i=Vi,LΣi,LRetained spatial singular vectors with singular values absorbedNv×L
ZiSpatial-factor residual after projection onto the existing shared basisNv×L
ZisvdRight rotation from the local projected SVD/Gram eigensystemLsk×Lsk
SiIncremental shared spatial basis after profile i; Ri here is its column countNv×Ri
S(0)=SNroCompleted incremental shared basisNv×R0
C¯iSaved incremental coefficient block, zero-padded to rank R0R0×L
q^i(0)=Ui,LC¯iHUnscaled temporal factor before optional global recompressionNt×R0
SFinal shared spatial basis, orthonormal up to numerical roundoffNv×R
q^iFinal unscaled temporal factor, after optional global recompressionNt×R
qiStored sample-domain coefficient matrix after zeroth-order phase, NFFT-centre correction, and 1/Nv normalizationNt×R
ηiRetained local rank-L energy, |V~i|F2non-negative scalar
τIncremental shared-basis tolerance (shared_basis_tol)dimensionless
ϵgAdditional global recompression tolerance (global_basis_tol, when supplied)dimensionless

The shared projection residual is Zi=V~i−Si−1Ciold, with shape Nv×L. In contrast, Ri is the scalar column count of Si. The local rSVD rotation Zisvd is a separate matrix; the superscript distinguishes it from this residual.

For incremental rSVD construction, a central implementation detail is that, for an earlier profile, the saved coefficient block is generally not the post-hoc projection of V~i onto the completed incremental basis:

C¯i≠(S(0))HV~i.

The incremental shared builder does not retain earlier V~i matrices for reprojection when later profiles expand the basis. Its representation is

Hi≈q^i(0)(S(0))H.

Optional final global recompression maps the completed factors to q^i,S with R≤R0; without it these factors are unchanged. The final residual model and stored temporal rows are

Hi≈q^iSH,qi(j,:)=d0,jicctr,jiNvq^i(j,:).

τ refers to compression of retained local factors. ϵg refers to additional error relative to the already shared representation. Neither is an image-error tolerance. See the algorithm and error derivation.

Implementation array names ​

The q and basis rows in this table describe basis_layout=:shared after optional final recompression. Dimensions describe array layout, independently of CPU/GPU placement.

Julia nameMathematical roleExplicit shapeLow-rank shape
ksphakℓ,i(tj)(nTerm,nSam)(nTerm,nSam,nDyn)
timestji(nSam,)(nSam,nDyn)
fieldmapΔf0(r)(nX,nY[,nZ])same
csmCc(r)(nX,nY[,nZ],nCha)same
maskReconstruction mask(nX,nY[,nZ])same
concomitantFour integrated concomitant coefficients(4,nSam)(4,nSam,nDyn)
image vectorFull image-grid input(prod(grid.matrixSize),)same image for all profiles
logical outputSamples before vec(nSam,nCha)(nSam,nDyn,nCha)
qConcatenated stored qi—(nSam*nDyn,R)
basisFinal shared spatial basis S on masked voxels—(nVox,R)

The single-profile LowRank overload also accepts a coefficient matrix (nTerm,nSam) and a time vector (nSam,). For one profile, concomitant may be (4,nSam).

With basis_layout=:per_readout, q instead has shape (nSam*nDyn,L) and the logical spatial-factor bank has shape (nVox,L*nDyn). Regenerated storage need not materialize this whole bank; see per-readout storage.

Julia column-major vectorization makes samples the fastest-changing index, followed by profiles and then receive channels. For a logical output yjic, its one-based vector index is

j+(i−1)Nt+(c−1)NtNro.

Use vec(image) for the full-grid input and vec(data) for output shaped (nSam,nDyn,nCha); masked-out image values do not contribute to the signal.

HighOrderMRI.jl documentation · v0.1.0 · code 425f7df · docs f949b4f