|
fastglmm
Massively scalable generalized linear mixed models
|
#include <spectralDecomp.h>
Public Member Functions | |
| spectralDecomp () | |
| spectralDecomp (const T &U, const vec &s, const ZTYPE &type=GENERAL) | |
| spectralDecomp (const T &Z, const ZTYPE &type=GENERAL) | |
| spectralDecomp (const spectralDecomp &other) | |
| void | reweight (const vec &weights, const bool &sort=false) |
| T | get_U () const |
| vec | get_s () const |
| mat | get_V () const |
| ZTYPE | get_type () const |
Protected Attributes | |
| T | U |
| vec | s |
| T | Z |
| T | Zw |
| mat | V |
| ZTYPE | type |
Class storing matrix Z, its squared singular values (s), left singular vectors (U), and right singular vectors (V). Z can be mat or sp_mat. Default type is GENERAL for arbitrary matrix Z. If Z is a categorical design matrix, use a faster method with type CATEGORICAL.
reweight() computes the SVD of the weighted Z matrix
|
inline |
|
inline |
|
inline |
Constructor
| Z | Random effects design matrix |
|
inline |
|
inline |
Accessor, returns squared singular values
|
inline |
|
inline |
Accessor, returns left singular vectors
|
inline |
Accessor, returns right singular values
|
inline |
Compute spectral decomp of weighted Z.
| weights | row weights |
| sort | should singular values and vectors be sorted |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |