亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? qtyr.src

?? 沒(méi)有說(shuō)明
?? SRC
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/*
** qtyr.src - Procedures related to the QR decomposition.
** (C) Copyright 1988-1998 by Aptech Systems, Inc.
** All Rights Reserved.
**
** This Software Product is PROPRIETARY SOURCE CODE OF APTECH
** SYSTEMS, INC.    This File Header must accompany all files using
** any portion, in whole or in part, of this Source Code.   In
** addition, the right to create such files is strictly limited by
** Section 2.A. of the GAUSS Applications License Agreement
** accompanying this Software Product.
**
** If you wish to distribute any portion of the proprietary Source
** Code, in whole or in part, you must first obtain written
** permission from Aptech Systems.
**
** These functions require GAUSS 3.0.
**
**  Format                   Purpose                                      Line
** ----------------------------------------------------------------------------
** { qty,r }   = QTYR(y,x);       QR decomposition                          28
** { qty,r,e } = QTYRE(y,x);      QR decomposition with pivoting           225
** { qty,r,e } = QTYREP(y,x,pvt); QR decomposition with pivoting control   447
**
*/

/*
**> qtyr
**
**  Purpose:    Computes the orthogonal-triangular (QR)
**              decomposition of a matrix X and returns
**              Q'Y and R.
**
**  Format:     { QTY,R } = qtyr(Y,X);
**
**  Input:      Y      NxL matrix.
**
**              X      NxP matrix.
**
**  Output:     QTY    KxL unitary matrix, K = min(N,P).
**
**              R      LxP upper triangular matrix, L = min(N,P).
**
**  Remarks:   Given X, there is an orthogonal matrix Q such that Q' * X
**             is zero below its diagonal, i.e.,
**
**                   Q'* X =  [ R ]                                   (39)
**                            [ 0 ]
**
**             where R is upper triangular.  If we partition
**
**                   Q = [ Q1 Q2 ]                                (40)
**
**             where Q1 has P columns then
**                                                                (41)
**                   X = Q1 * R
**
**             is the QR decomposition of X.  If X has linearly
**             independent columns, R is also the Cholesky factorization of
**             the moment matrix of X, i.e., of X'* X.
**                                                                (42)
**             For most problems Q or Q1 are not what is required.
**             Rather, we require Q'* Y or Q1'* Y where Y is an NxL matrix
**             (If either Q * Y or Q1 * Y are required see qyr).
**             Since Q can be a very large matrix, qtyr has been
**             provided for the calculation of Q'Y which will be a much
**             smaller matrix.  Q1'Y will be a submatrix of Q'Y.  In
**             particular,
**
**                    Q1TY = QTY[1:P,.]                             (43)
**
**             and Q2'Y is the remaining submatrix:
**
**                    Q2TY = QTY[P+1:N,.]                          (44)
**
**             Suppose that X is an NxK data set of independent variables, and
**             Y is an Nx1 vector dependent variables.  Then it can be shown
**             that
**
**                    b = inv(R)*Q1TY;                             (45)
**
**             and
**
**                    s = sumc(Q2TY^2);                           (46)
**
**             where b is PxL matrix of least squares coefficients and s
**             a 1xL vector of residual sum of squares.  Rather than invert
**             R directly, however, it is better to apply qrsol to
**
**                     R b = Q1TY.                                (47)
**
**                 For rank deficient least squares problems, see qtyre and
**             qtyrep.
**
**  Example:   The QR algorithm is the superior numerical method for the
**             solution of least squares problems:
**
**             loadm x, y;                                            (48)
**             { qty, r } = qtyr(y,x);
**             q1ty = qty[1:rows(r)];
**             q2ty = qty[rows(r)+1:rows(qty)];
**             b = qrsol(q1ty,r);     /* LS coefficients */
**             s2 = sumc(q2ty^2);     /* residual sums of squares */
**
**
**  Globals:    _qrdc, _qrsl
**
**  See Also:  qqr, qtyre, qtyrep, olsqr
**
*/

proc (2) = qtyr(y,x);
    local flag,n,p,l,qraux,work,pvt,job,dum,info,r,v,q,i,k0,k,dif,qty,
          ty,yi;

    /* check for complex input */
    if iscplx(y);
        if hasimag(y);
            errorlog "ERROR: Not implemented for complex matrices.";
            end;
        else;
            y = real(y);
        endif;
    endif;

    if iscplx(x);
        if hasimag(x);
            errorlog "ERROR: Not implemented for complex matrices.";
            end;
        else;
            x = real(x);
        endif;
    endif;

    n = rows(x);
    p = cols(x);
    l = cols(y);
    qraux = zeros(p,1);
    work = qraux;
    pvt = qraux;

    dum = 0;
    info = 0;
    job = 01000;    /* compute qty only */
    x = x';

    flag = 0;

#ifDLLCALL
#else

    if rows(_qrdc) /= 647 or _qrdc[1] $== 0;
        _qrdc = zeros(647,1);
        loadexe _qrdc = qrdc.rex;
    endif;
    callexe _qrdc(x,n,n,p,qraux,pvt,work,flag);

#endif

#ifDLLCALL

    dllcall qrdc(x,n,n,p,qraux,pvt,work,flag);

#endif

    k = minc(n|p);
    k0 = k;
    dif = abs(n-p);
    qty = zeros(n,l);
    ty = zeros(n,1);

    if n > p;
        r = trimr(x',0,dif);
        v = seqa(1,1,p);    /* use to create mask */
        r = r .*( v .<= v' );       /* R */
        clear v;
    elseif p > n;
        v = seqa(1,1,p);    /* use to create mask */
        v = v .<= v';
        v = trimr(v,0,dif);
        r = x' .* v ;        /* R */
        clear v;
    else;
        v = seqa(1,1,p);    /* use to create mask */
        v = v .<= v';
        r = x' .* v ;        /* R */
        clear v;
    endif;

#ifDLLCALL
#else

    if rows(_qrsl) /= 455 or _qrsl[1] $== 0;
        _qrsl = zeros(455,1);
        loadexe _qrsl = qrsl.rex;
    endif;

#endif

    i = 1;
    do until i > l;  /* Compute Q'y */
        yi = y[.,i];

#ifDLLCALL
#else

        callexe _qrsl(x,n,n,k,qraux,yi,dum,ty,dum,dum,dum,job,info);

#endif

#ifDLLCALL

        dllcall qrsl(x,n,n,k,qraux,yi,dum,ty,dum,dum,dum,job,info);

#endif

        qty[.,i] = ty;
        i = i + 1;
    endo;
    retp(qty,r);
endp;


/*
**> qtyre
**
**  Purpose:    Computes the orthogonal-triangular (QR)
**              decomposition of a matrix X and returns
**              Q'Y and R.
**
**  Format:     { QTY,R,E } = qtyre(Y,X);
**
**  Input:      Y      NxL matrix.
**
**              X      NxP matrix.
**
**  Output:     QTY    KxL unitary matrix, K = min(N,P).
**
**              R      LxP upper triangular matrix, L = min(N,P).
**
**              E      Px1 permutation vector.
**
**  Remarks:   Given X[.,E], where E is a permutation vector that permutes
**             the columns of X, there is an orthogonal matrix Q such that
**             Q' * X[.,E] is zero below its diagonal, i.e.,
**
**                   Q'* X[.,E] = [ R ]                              (49)
**                                [ 0 ]
**
**             where R is upper triangular.
**             If we partition
**
**                   Q = [ Q1 Q2 ]                                    (50)
**
**             where Q1 has P columns then
**
**                    X[.,E] = Q1 * R                                (51)
**
**             is the QR decomposition of X[.,E].
**
**                If X has rank P, then the columns of X will
**             not be permuted.  If X has rank M < P, then the M linearly
**             independent columns are permuted to the front of X
**             by E.  Partition the permuted X in the following way:
**
**                    X[.,E] = [ X1 X2 ]                               (52)
**
**             where X1 is NxM and X2 is Nx(P-M).  Further partition R
**             in the following way:
**
**                   R = [ R11 R12 ]                                  (53)
**                       [  0   0  ]
**
**             where R11 is MxM and R12 is Mx(P-M).  Then
**
**                   A = inv(R11)*R12                              (54)
**
**             and
**
**                   X2 = X1*A.                                   (55)
**
**             that is, A is an Mx(P-N) matrix defining the linear
**             combinations of X2 with respect to X1.
**
**                 For most problems Q or Q1 are not it is required.
**             Rather, we require Q'* Y or Q1'* Y where Y is an NxL matrix.
**             Since Q can be a very large matrix, qtyr has been
**             provided for the calculation of Q'Y which will be a much
**             smaller matrix.  Q1'Y will be a submatrix of Q'Y.  In
**             particular,
**
**                    Q1TY = QTY[1:P,.]                       (56)
**
**             and Q2'Y is the remaining submatrix:
**
**                    Q2TY = QTY[P+1:N]                       (57)
**
**             Suppose that X is an NxK data set of independent variables, and
**             Y is an Nx1 vector dependent variables.  Suppose further that
**             X contains linearly dependent columns, i.e., X has rank M < P.
**             Then define
**
**                   C = Q1TY[1:M]                         (58)
**                   A = R[1:M,1:M]                        (59)
**
**             and the vector (or matrix of L > 1) of least squares
**             coefficients of the reduced,
**             linearly independent problem is the solution of
**
**                  A b = C.                            (60)
**
**             To solve for b use qrsol:
**
**                  b = qrsol(C,A);
**
**

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美久久久久免费| 国产亚洲成年网址在线观看| 国产乱一区二区| 一区二区三区中文字幕在线观看| 欧美xxx久久| 欧美日韩精品一区二区三区四区| 国产乱色国产精品免费视频| 亚洲h精品动漫在线观看| 亚洲国产激情av| 欧美成人女星排行榜| 91国产成人在线| 岛国一区二区在线观看| 精品在线你懂的| 青青草一区二区三区| 成人午夜在线播放| 美女www一区二区| 亚洲高清在线精品| 亚洲精品视频观看| 国产精品久久久久久久第一福利| 精品美女在线观看| 91精品国模一区二区三区| 色视频欧美一区二区三区| 国产v日产∨综合v精品视频| 老司机精品视频一区二区三区| 亚洲超丰满肉感bbw| 伊人一区二区三区| 亚洲视频小说图片| 自拍偷在线精品自拍偷无码专区 | 色8久久精品久久久久久蜜| 国产成人精品亚洲777人妖 | 99久久婷婷国产综合精品| 国产成人精品综合在线观看| 国产老妇另类xxxxx| 国产一区二区导航在线播放| 韩国一区二区在线观看| 精品制服美女久久| 国产专区综合网| 国产成人自拍网| 国产成人精品综合在线观看| 豆国产96在线|亚洲| 国产99久久久国产精品潘金网站| 国产成人精品一区二| www.欧美.com| 色婷婷久久久综合中文字幕| 欧美自拍偷拍一区| 欧美日韩不卡在线| 欧美一二区视频| 欧美电影免费观看完整版| 精品国产乱码久久久久久蜜臀| 天天综合网天天综合色| 亚洲超丰满肉感bbw| 奇米色一区二区三区四区| 精品中文字幕一区二区小辣椒 | 欧美三级视频在线| 91精品国产综合久久久蜜臀图片| 日韩精品自拍偷拍| 国产欧美日韩不卡| 一区二区理论电影在线观看| 午夜电影一区二区三区| 捆绑变态av一区二区三区| 国产乱人伦偷精品视频不卡| www.欧美.com| 91.com视频| 中文在线免费一区三区高中清不卡| 亚洲欧美日韩综合aⅴ视频| 午夜精品视频一区| 国产成人激情av| 在线观看日产精品| 精品国产成人在线影院| 亚洲欧美日本在线| 蜜桃视频在线一区| av亚洲精华国产精华精华| 在线电影院国产精品| 国产亚洲女人久久久久毛片| 夜夜夜精品看看| 激情综合五月婷婷| 色综合天天综合网天天狠天天| 555www色欧美视频| 欧美激情在线一区二区| 欧美亚洲尤物久久| 久久综合国产精品| 亚洲一区在线免费观看| 国产美女精品人人做人人爽| 色噜噜久久综合| 久久久久久一级片| 亚洲国产欧美另类丝袜| 国产成人在线视频网址| 欧美日韩日日骚| 中文字幕精品三区| 看电影不卡的网站| 欧美三级三级三级爽爽爽| 国产欧美一区二区三区在线看蜜臀 | 欧美三级电影网站| 久久精品欧美日韩精品 | 蜜桃传媒麻豆第一区在线观看| 成人av电影在线网| 日韩亚洲欧美在线观看| 亚洲日本中文字幕区| 国产乱人伦偷精品视频免下载| 欧美丰满嫩嫩电影| 亚洲视频在线一区二区| 国产精品2024| 日韩美女视频在线| 五月激情综合婷婷| 欧美伊人久久久久久久久影院 | 国产日韩精品一区二区三区在线| 亚洲国产精品久久久久秋霞影院 | 亚洲精品一区二区三区影院| 91免费看`日韩一区二区| 精品国产自在久精品国产| 午夜成人免费视频| 欧洲生活片亚洲生活在线观看| 国产精品久久久久aaaa樱花| 国产一区二区三区久久悠悠色av | 国产片一区二区| 国产在线一区二区| 精品久久久久99| 欧美bbbbb| 日韩写真欧美这视频| 午夜精品久久久久久久99樱桃| 91女人视频在线观看| 国产精品污污网站在线观看| 国产精品1区二区.| 国产日韩欧美一区二区三区综合| 精品制服美女久久| 欧美变态tickle挠乳网站| 久久99精品国产麻豆婷婷洗澡| 日韩一区二区三区在线| 爽好多水快深点欧美视频| 欧美日韩二区三区| 亚洲.国产.中文慕字在线| 欧美日韩国产系列| 天堂久久一区二区三区| 在线电影欧美成精品| 美女被吸乳得到大胸91| 欧美xxxxxxxxx| 国产精品综合在线视频| 国产精品欧美久久久久一区二区 | 日韩免费一区二区三区在线播放| 欧美午夜在线一二页| 一区二区久久久久久| 欧美日韩成人综合在线一区二区| 日韩在线观看一区二区| 精品国免费一区二区三区| 国产精品1区2区3区在线观看| 国产精品无码永久免费888| av不卡一区二区三区| 又紧又大又爽精品一区二区| 欧美三级蜜桃2在线观看| 免费一区二区视频| 国产欧美日韩另类一区| 91看片淫黄大片一级在线观看| 亚洲午夜久久久| 日韩三级视频在线看| 国产毛片精品视频| 国产精品福利一区二区| 色婷婷综合久久久久中文一区二区| 亚洲第一电影网| 日韩欧美成人激情| av在线不卡免费看| 性做久久久久久免费观看| 欧美不卡在线视频| 99国产精品久| 爽爽淫人综合网网站| 久久久久久久久97黄色工厂| 91麻豆.com| 美女被吸乳得到大胸91| 中文字幕一区二区三区在线不卡| 在线观看av不卡| 国产综合成人久久大片91| 亚洲人成网站精品片在线观看| 欧美日韩亚洲综合在线 | 国产精品久久久久9999吃药| 色94色欧美sute亚洲13| 久久97超碰国产精品超碰| 国产精品久久久爽爽爽麻豆色哟哟 | 欧美日韩不卡一区二区| 九九视频精品免费| 一区二区三区精品视频在线| 精品国产亚洲在线| 在线视频中文字幕一区二区| 黄色小说综合网站| 亚洲国产精品久久久久秋霞影院 | 国产麻豆91精品| 亚洲一区av在线| 国产欧美一区二区精品忘忧草| 欧美情侣在线播放| 不卡av在线网| 美女精品一区二区| 亚洲国产一区二区三区青草影视| 国产欧美日韩综合| 欧美一区二区久久| 91九色最新地址| 91精品国产综合久久香蕉麻豆| 91在线视频观看| 国产成人aaaa| 久久丁香综合五月国产三级网站| 一区二区三区蜜桃网| 国产精品天干天干在线综合| 精品国产乱码久久久久久老虎|