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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? qr.src

?? 沒有說明
?? SRC
字號:
/*
** qr.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
** ---------------------------------------------------------------------------
**   r       = QR(x);           QR decomposition                          30
** { r,e }   = QRE(x);          QR decomposition with pivoting           163
** { r,e }   = QREP(x,pvt);     QR decomposition with pivoting control   317
*/
#include qr.ext



/*
**> qr
**
**  Purpose:    Computes the orthogonal-triangular (qr)
**              decomposition of a matrix X, such that:
**
**                          X = Q1*R.                               (17)
**
**  Format:     R = qr(x);
**
**  Input:      X    NxP matrix.
**
**  Output:     R    LxP upper triangular matrix, L = min(N,P).
**
**  Remarks:   qr is the same as qqr but doesn't return the Q1 matrix.
**             If Q1 is not wanted, qr will save a significant amount
**             of time and memory usage, especially for large problems.
**
**             Given X, there is an orthogonal matrix Q such that Q' * X
**             is zero below its diagonal, i.e.,
**
**                   Q'* X =  [ R ]                              (18)
**                            [ 0 ]
**
**             where R is upper triangular.  If we partition
**
**                   Q = [ Q1 Q2 ]                               (19)
**
**             where Q1 has P columns then
**
**                   X = Q1 * R                                   (20)
**
**             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.            (21)
**
**             qr does not return the Q matrix because in most cases it is
**             not required and can be very large.  If you need the Q1 matrix
**             see the GAUSS function qqr.  If you need the entire Q matrix
**             call qyr with Y set to a conformable identity
**             matrix.
**
**             For most problems Q'* Y, Q1'* Y, or Q * Y, Q1 * Y,
**             for some Y, are required.  For these cases see qtyr and qyr.
**
**             For linear equation or least squares problems, which require Q2
**             for computing residuals and residual sums of squares, see olsqr.
**
**             If N < P the factorization assumes the form:
**
**                   Q'* X = [ R1  R2 ]                              (22)
**
**             where R1 is a PxP upper triangular matrix and R2 is Px(N-P).
**             Thus Q is a PxP matrix and R is a PxN matrix containing R1 and
**             R2.  This type of factorization is useful for the solution of
**             underdetermined systems.  However,  (unless the linearly
**             independent columns happen to be the initial rows) such an
**             analysis also requires pivoting (see qre and qrep).
**
**
**
** Globals:    _qrdc, _qrsl
**
** See Also:  qqr, qrep, qtyre
**
*/

proc (1) = qr(x);
    local flag,n,p,qraux,work,pvt,job,dum,info,qy,r,v,i,y,k,dif;

    /* check for complex input */
    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);
    qraux = zeros(p,1);
    work = qraux;
    pvt = qraux;

    dum = 0;
    info = 0;
    job = 10000;    /* compute qy only */
    qy = zeros(n,1);
    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);
    dif = abs(n-p);

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

    retp(r);
endp;


/*
**> qre
**
**  Purpose:    Computes the orthogonal-triangular (qr)
**              decomposition of a matrix X, such that:
**
**                         X[.,E] = Q1*R.                       (23)
**
**  Format:     { R,E } = qre(X);
**
**  Input:       X    NxP matrix.
**
**  Output:      R    LxP upper triangular matrix, L = min(N,P).
**
**               E    Px1 permutation vector.
**
**  Remarks:   qre is the same as qqre but doesn't return the Q1 matrix.
**             If Q1 is not wanted, qre will save a significant amount
**             of time and memory usage, especially for large problems.
**
**             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 ]                            (24)
**                                [ 0 ]
**
**             where R is upper triangular.
**             If we partition
**
**                   Q = [ Q1 Q2 ]                                (25)
**
**             where Q1 has P columns then
**
**                    X[.,E] = Q1 * R                            (26)
**
**             is the qr decomposition of X[.,E].                (27)
**
**             qre does not return the Q matrix because in most cases it is
**             not required and can be very large.  If you need the Q1 matrix
**             see the GAUSS function qqre.  If you need the entire Q matrix
**             call qyre with Y set to a conformable identity
**             matrix.  For most problems Q'* Y, Q1'* Y, or Q * Y, Q1 * Y,
**             for some Y, are required.  For these cases see qtyre and qyre.

**             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 ]                               (28)
**
**             where X1 is NxM and X2 is Nx(P-M).  Further partition R
**             in the following way:
**
**                   R = [ R11 R12 ]                                   (29)
**                       [  0   0  ]
**
**             where R11 is MxM and R12 is Mx(P-M).  Then
**
**                   A = inv(R11)*R12                                 (30)
**
**             and
**
**                   X2 = X1*A.                                       (31)
**
**             that is, A is an Mx(P-N) matrix defining the linear
**             combinations of X2 with respect to X1.
**
**             If N < P the factorization assumes the form:
**
**                   Q'* X = [ R1  R2 ]                              (32)
**
**             where R1 is a PxP upper triangular matrix and R2 is Px(N-P).
**             Thus Q is a PxP matrix and R is a PxN matrix containing R1 and
**             R2.  This type of factorization is useful for the solution of
**             underdetermined systems.  For the solution of
**
**                   X[.,E] * b = Y
**                                                                 (33)
**             it can be shown that
**
**                  b = qrsol(Q'Y,R1) | zeros(N-P,1);
**
**             The explicit formation here of Q, which can be a very large
**             matrix, can be avoided by using the GAUSS function qtyre.
**
**             For further discussion of qr factorizations see the documentation
**             for the GAUSS function qqr.
**
**  Globals:    _qrdc
**
**  See Also:   qqr, olsqr
*/

proc (2) = qre(x);
    local flag,n,p,qraux,work,pvt,r,v,k,dif;

    /* check for complex input */
    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);
    qraux = zeros(p,1);
    work = qraux;
    pvt = qraux;
    x = x';

    flag = 1;

#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);
    dif = abs(n-p);

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

/*
**> qrep
**
**  Purpose:    Computes the orthogonal-triangular (QR)
**              decomposition of a matrix X, such that:
**
**                          X[.,E] = Q1*R.                       (34)
**
**  Format:     { R,E } = qrep(X,PVT);
**
**  Input:      X      NxP matrix.
**
**              PVT    Px1 vector, controls the selection of the pivot
**                     columns:
**
**                          if PVT[i] gt 0 then X[i] is an initial column
**                          if PVT[i] eq 0 then X[i] is a free column
**                          if PVT[i] lt 0 then X[i] is a final column
**
**                     The initial columns are placed at the beginning
**                     of the matrix and the final columns are placed
**                     at the end.  Only the free columns will be moved
**                     during the decomposition.
**
**  Output:     R      LxP upper triangular matrix, L = min(N,P).
**
**              E      Px1 permutation vector.
**
**  Remarks:   qrep is the same as qqrep but doesn't return the Q1 matrix.
**             If Q1 is not wanted, qrep will save a significant amount
**             of time and memory usage, especially for large problems.
**
**             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 ]                           (35)
**                                [ 0 ]
**
**             where R is upper triangular.
**             If we partition
**
**                   Q = [ Q1 Q2 ]                              (36)
**
**             where Q1 has P columns then
**
**                   X[.,E] = Q1 * R                           (37)
**
**             is the qr decomposition of X[.,E].               (38)
**
**             qrep does not return the Q matrix because in most cases it is
**             not required and can be very large.  If you need the Q1 matrix
**             see the GAUSS function qqrep.  If you need the entire Q matrix
**             call qyrep with Y set to a conformable identity
**             matrix.  For most problems Q'* Y, Q1'* Y, or Q * Y, Q1 * Y,
**             for some Y, are required.  For these cases see qtyrep and qyrep.
**
**             qrep allows you to control the pivoting.  For example,
**             suppose that X is a data set with a column of ones in the
**             first column.  If there are linear dependencies among the
**             columns of X, the column of ones for the constant may get
**             pivoted away.  This column can be forced to be included
**             among the linearly independent columns using pvt.
**
**  Globals:    _qrdc
**
**  See Also:   qr, qre, qqrep
*/

proc (2) = qrep(x,pvt);
    local flag,n,p,qraux,work,r,v,k,dif;

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

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

    n = rows(x);
    p = cols(x);
    qraux = zeros(p,1);
    work = qraux;
    x = x';

    flag = 1;

#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);
    dif = abs(n-p);

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

    retp(r,pvt);
endp;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一级专区免费大片| 亚洲天堂免费在线观看视频| 国产精品久久久久永久免费观看| 亚洲免费毛片网站| 国产美女主播视频一区| 欧美三级电影网| 亚洲女女做受ⅹxx高潮| 精品一区二区综合| 91精品在线观看入口| 亚洲欧洲国产专区| 国产成人综合视频| 精品福利av导航| 蜜桃视频在线观看一区二区| 欧美日韩国产综合草草| 亚洲女厕所小便bbb| av网站免费线看精品| 久久中文字幕电影| 久久er99精品| 欧美一区二区福利视频| 亚洲国产成人av好男人在线观看| 波多野结衣在线aⅴ中文字幕不卡| 精品久久国产字幕高潮| 免费av网站大全久久| 精品1区2区3区| 亚洲一区二区视频| 91精品1区2区| 亚洲一线二线三线视频| 91在线你懂得| 亚洲免费在线观看| 一本色道久久综合狠狠躁的推荐| 国产欧美日韩视频在线观看| 国产一区二区日韩精品| 久久久亚洲高清| 国产最新精品精品你懂的| xnxx国产精品| 国产成人精品一区二区三区四区 | 91国偷自产一区二区三区观看| 国产视频一区不卡| 成人精品免费视频| 国产精品乱人伦| 91丨九色丨国产丨porny| 亚洲三级久久久| 欧美少妇xxx| 日日夜夜免费精品视频| 欧美tk—视频vk| 国产91精品一区二区麻豆亚洲| 欧美高清在线视频| 95精品视频在线| 亚洲高清在线视频| 欧美v亚洲v综合ⅴ国产v| 国产 日韩 欧美大片| 亚洲色图在线看| 欧美丰满美乳xxx高潮www| 麻豆国产精品777777在线| 久久久夜色精品亚洲| 日本精品视频一区二区三区| 丝瓜av网站精品一区二区| 欧美成人r级一区二区三区| 国产白丝网站精品污在线入口| 中文字幕在线免费不卡| 欧美丰满美乳xxx高潮www| 国产精品一区二区你懂的| 亚洲男帅同性gay1069| 欧美一卡在线观看| 99免费精品在线| 免费看欧美美女黄的网站| 国产精品久久久久一区二区三区 | 天天操天天干天天综合网| 精品三级在线看| 一本久道久久综合中文字幕| 九一久久久久久| 亚洲欧美视频在线观看视频| 精品免费视频.| 91色视频在线| 国产一区二区视频在线| 一区二区三区免费| 久久蜜臀中文字幕| 欧美日韩专区在线| 成人精品视频.| 久久电影国产免费久久电影| 夜夜操天天操亚洲| 国产欧美一区二区三区网站| 欧美精品三级日韩久久| 99久久国产免费看| 韩国av一区二区| 午夜精品一区二区三区免费视频| 国产精品电影一区二区| 日韩精品成人一区二区在线| 国产精品久久777777| 日韩视频一区在线观看| 99re热视频这里只精品| 久久99精品久久久久久 | 2020国产精品久久精品美国| 欧美性极品少妇| 97超碰欧美中文字幕| 国产精品亚洲成人| 韩国毛片一区二区三区| 视频一区二区欧美| 亚洲成人一区二区在线观看| 亚洲免费毛片网站| 亚洲欧美自拍偷拍| 国产精品色婷婷| 中文字幕欧美日韩一区| 欧美精品一区二区在线观看| 欧美精品色综合| 欧美猛男超大videosgay| 色素色在线综合| 91久久国产最好的精华液| 91一区二区三区在线观看| 成人福利视频网站| 成人黄色小视频| caoporen国产精品视频| 99精品国产视频| 99精品欧美一区二区三区小说 | 国产成人夜色高潮福利影视| 国产在线视频一区二区| 国产乱码精品一区二区三区忘忧草| 免费xxxx性欧美18vr| 美女看a上一区| 精品一区二区影视| 国产成人综合在线播放| 成人一区二区三区视频在线观看| 国产福利一区二区三区视频| 成人综合婷婷国产精品久久| 高清在线不卡av| gogogo免费视频观看亚洲一| 99re这里只有精品首页| 色婷婷亚洲一区二区三区| 欧美午夜精品理论片a级按摩| 欧美最猛黑人xxxxx猛交| 欧美日韩国产影片| 日韩欧美激情在线| 欧美激情中文不卡| 亚洲精品高清在线观看| 性做久久久久久免费观看| 蜜臀av一区二区| 国产高清成人在线| 91福利在线观看| 日韩精品一区在线| 中文字幕av一区 二区| 亚洲蜜桃精久久久久久久| 日韩av成人高清| 国产sm精品调教视频网站| 91精彩视频在线观看| 日韩精品自拍偷拍| 日韩毛片高清在线播放| 亚洲国产成人av好男人在线观看| 经典三级视频一区| 91久久精品网| 久久综合久色欧美综合狠狠| 亚洲乱码日产精品bd| 蜜桃久久久久久| 色先锋久久av资源部| 日韩精品中文字幕一区| 亚洲欧洲综合另类在线| 看电影不卡的网站| 色婷婷精品大视频在线蜜桃视频| 精品日韩一区二区三区免费视频| 成人欧美一区二区三区小说| 日日夜夜免费精品视频| av日韩在线网站| 久久欧美一区二区| 午夜视频在线观看一区二区三区| 国产精品一区二区不卡| 欧美色爱综合网| 欧美激情一区在线观看| 日韩—二三区免费观看av| 91一区二区在线观看| 国产亚洲成aⅴ人片在线观看 | 亚洲精品福利视频网站| 国产一区不卡视频| 欧美日韩精品二区第二页| 国产精品久久一卡二卡| 极品美女销魂一区二区三区| 欧美三区免费完整视频在线观看| 欧美国产视频在线| 国产综合色精品一区二区三区| 欧美视频完全免费看| 中文字幕日韩欧美一区二区三区| 黄网站免费久久| 欧美一区二区三区日韩视频| 夜夜操天天操亚洲| 色呦呦一区二区三区| 国产精品免费丝袜| 丁香天五香天堂综合| 日韩欧美中文字幕精品| 婷婷综合久久一区二区三区| 色吊一区二区三区| 亚洲天堂精品视频| bt欧美亚洲午夜电影天堂| 中文字幕欧美激情| 国产成人精品一区二 | 欧美大片国产精品| 五月天激情综合网| 欧美久久高跟鞋激| 图片区小说区国产精品视频| 欧美亚洲一区三区| 亚洲三级在线播放| 欧美在线视频不卡| 亚洲五月六月丁香激情|