towhee.models.vis4mer.utils.nplr

towhee.models.vis4mer.utils.nplr(measure, n, rank=1, dtype=torch.float32)[source]

Return w, p, q, v, b such that (w - p q^*, b) is unitarily equivalent to the original HiPPO a, b by the matrix v i.e. a = v[w - p q^*]v^*, b = v b :param measure: the type of measure

legt - Legendre (translated) legs - Legendre (scaled) glagt - generalized Laguerre (translated) lagt, tlagt - previous versions of (tilted) Laguerre with slightly different normalization

Parameters:
  • n (int) – dimension

  • rank (int) – rank

  • dtype (str) – data type