MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / lrcopy

Function lrcopy

src/linreg.cpp:613–620  ·  view source on GitHub ↗

Copying of LinearModel strucure INPUT PARAMETERS: LM1 - original OUTPUT PARAMETERS: LM2 - copy -- ALGLIB -- Copyright 15.03.2009 by Bochkanov Sergey *************************************************************************/

Source from the content-addressed store, hash-verified

611 Copyright 15.03.2009 by Bochkanov Sergey
612*************************************************************************/
613void lrcopy(const linearmodel& lm1, linearmodel& lm2)
614{
615 int k;
616
617 k = ap::round_f(lm1.w(0));
618 lm2.w.setbounds(0, k-1);
619 ap::vmove(&lm2.w(0), 1, &lm1.w(0), 1, ap::vlen(0,k-1));
620}
621
622
623/*************************************************************************

Callers

nothing calls this directly

Calls 3

round_fFunction · 0.85
vmoveFunction · 0.85
setboundsMethod · 0.45

Tested by

no test coverage detected