derekbeaton / GSVD

19 stars 6 forks source link

compact returns #21

Open derekbeaton opened 4 years ago

derekbeaton commented 4 years ago

the g*() functions should have a "verbose" and "compact" return

the "verbose" is what I have now, the "compact" should focus strictly on what is needed for decomposition/rebuilding the matrices

derekbeaton commented 4 years ago

actually, instead of a compact input argument, the argument should be which items the user wants g*() to return...

it will be defaulted to all available (also as "all"), but they can select, and from there I'll choose. anything that does not match defaults to returning "all". upper or lower case should be irrelevant

derekbeaton commented 4 years ago

So if I do a compact return, the first version should be a simple boolean T/F. IN the return object I should include a $rank to indicate the actual size, and then use an attribute for whether the object is compact or not

geigen() -- compact returns $q & $l gsvd() -- compact returns $p, $d, $q gplssvd() -- compact returns at least $lx $ly, and possibly $p, $d, $q