bartorch.tools.lrmatrix

Contents

bartorch.tools.lrmatrix#

bartorch.tools.lrmatrix(input, *, d=False, i=None, m=None, f=None, j=None, k=None, N=False, s=False, l=None, o=None, u=False, v=False, H=False, p=None, n=False, **extra)#

Perform (multi-scale) low rank matrix completion

Runs bart lrmatrix.

Parameters:
  • input (torch.Tensor) – Input array.

  • d (bool) – perform decomposition instead, ie fully sampled (-d)

  • i (int | None) – maximum iterations. (-i)

  • m (int | tuple[int, ...] | None) – Axes reshaped into the matrix columns. (-m)

  • f (int | tuple[int, ...] | None) – Axes the multi-scale partition is along. (-f)

  • j (int | None) – block size scaling from one scale to the next one. (-j)

  • k (int | None) – smallest block size (-k)

  • N (bool) – add noise scale to account for Gaussian noise. (-N)

  • s (bool) – perform low rank + sparse matrix completion. (-s)

  • l (int | None) – perform locally low rank soft thresholding with specified block size. (-l)

  • o (str | None) – summed over all non-noise scales to create a denoised output. (-o)

  • u (bool) – () (-u)

  • v (bool) – () (-v)

  • H (bool) – (hogwild) (-H)

  • p (float | None) – (rho) (-p)

  • n (bool) – (no randshift) (-n)

  • **extra (Any) – Further BART flags, passed through by name.

Returns:

output

Return type:

torch.Tensor