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

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

?? qyr.src

?? 沒有說明
?? SRC
字號:
/*
** qyr.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
** ---------------------------------------------------------------------------
** { qy,r }    = QYR(y,x);        QR decomposition                          28
** { qy,r,e }  = QYRE(y,x);       QR decomposition with pivoting           187
** { qy,r,e }  = QYREP(y,x,pvt);  QR decomposition with pivoting control   353
**
*/

/*
**> qyr
**
**  Purpose:    Computes the orthogonal-triangular (QR)
**              decomposition of a matrix X and returns
**              Q * Y and R.                                 (66)
**
**  Format:     { QY,R } = qyr(Y,X);
**
**  Input:      Y     NxL matrix.
**
**              X     NxP matrix.
**
**  Output:     QY    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 ]                              (67)
**                            [ 0 ]
**
**             where R is upper triangular.  If we partition
**
**                   Q = [ Q1 Q2 ]                              (68)
**
**             where Q1 has P columns then
**
**                   X = Q1 * R                                (69)
**
**             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.
**
**             For most problems Q or Q1 are not what is required.
**             Since Q can be a very large matrix, qyr has been
**             provided for the calculation of Q * Y, where Y is
**             some NxL matrix, which will be a much smaller matrix.
**
**             If either Q'* Y or Q1'* Y are required see qtyr.
**
**  Globals:    _qrdc, _qrsl
**
**  See Also:  qqr, qyre, qyrep, olsqr
*/

proc (2) = qyr(y,x);
    local flag,n,p,l,qraux,work,pvt,job,dum,info,r,v,q,i,k0,k,dif,qy,
          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 = 10000;    /* compute qy 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);
    qy = 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,ty,dum,dum,dum,dum,job,info);

#endif

#ifDLLCALL

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

#endif

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


/*
**> qyre
**
**  Purpose:    Computes the orthogonal-triangular (QR)
**              decomposition of a matrix X and returns
**              Q * Y and R.                                  (70)
**
**  Format:     { QY,R,E } = qyre(Y,X);
**
**  Input:      Y     NxL matrix.
**
**              X     NxP matrix.
**
**  Output:     QY    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 ]                       (71)
**                                [ 0 ]
**
**             where R is upper triangular.
**             If we partition
**
**                   Q = [ Q1 Q2 ]                          (72)
**
**             where Q1 has P columns then
**
**                    X[.,E] = Q1 * R                       (73)
**
**             is the QR decomposition of X[.,E].
**
**             For most problems Q or Q1 are not what is required.
**             Since Q can be a very large matrix, qyr has been
**             provided for the calculation of Q * Y, where Y is
**             some NxL matrix, which will be a much smaller matrix.
**
**             If either Q'* Y or Q1'* Y are required see qtyre.
**
**             If N < P the factorization assumes the form:
**
**                   Q'* X[.,E] = [ R1  R2 ]                    (74)
**
**             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.
**
**  Globals:    _qrdc, _qrsl
**
**  See Also:   qqr, qre, qyr
*/

proc (3) = qyre(y,x);
    local flag,n,p,l,qraux,work,pvt,job,dum,info,r,v,q,i,k,dif,qy,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 = 10000;
    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);
    qy = 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 the QY */
        yi = y[.,i];

#ifDLLCALL
#else

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

#endif

#ifDLLCALL

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

#endif

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

/*
**> qyrep
**
**
**  Purpose:    Computes the orthogonal-triangular (QR)
**              decomposition of a matrix X using a pivot vector
**              and returns Q * Y and R.                        (75)
**
**  Format:     { QY,R,E } = qyrep(Y,X,PVT);
**
**  Input:      Y    NxL matrix.
**
**              X    NxP matrix.
**
**  Output:     QY   KxL unitary matrix, K = min(N,P).
**
**              R    LxP upper triangular matrix, L = min(N,P).
**
**              E    Px1 permutation vector.
**
**              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:      QY    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 ]                    (76)
**                                [ 0 ]
**
**             where R is upper triangular.
**             If we partition
**
**                   Q = [ Q1 Q2 ]                          (77)
**
**             where Q1 has P columns then
**
**                    X[.,E] = Q1 * R                        (78)
**
**             is the QR decomposition of X[.,E].
**
**             qyrep 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.
**
**             For most problems Q or Q1 is not what is required.
**             Since Q can be a very large matrix, qyrep has been
**             provided for the calculation of Q * Y, where Y is
**             some NxL matrix, which will be a much smaller matrix.
**
**             If either Q'* Y or Q1'* Y are required see qtyrep.
**
**             If N < P the factorization assumes the form:
**
**                   Q'* X[.,E] = [ R1  R2 ]                (79)
**
**             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.
**
**  Globals:    _qrdc, _qrsl
**
**  See Also:  qqrep, qr, qrep, qtyrep
*/

proc (3) = qyrep(y,x,pvt);
    local flag,n,p,l,qraux,work,job,dum,info,r,v,q,i,k,dif,qy,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;

    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);
    l = cols(y);
    qraux = zeros(p,1);
    work = qraux;

    dum = 0;
    info = 0;
    job = 10000;    /* compute qy */
    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);
    qy = 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,ty,dum,dum,dum,dum,job,info);

#endif

#ifDLLCALL

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

#endif

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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品99久久久**| 国产综合色产在线精品| caoporm超碰国产精品| 日本一二三不卡| 国产伦精品一区二区三区免费迷| 日韩欧美在线影院| 国产一区二区精品久久91| 2021中文字幕一区亚洲| 久久99精品国产麻豆婷婷 | 天天影视涩香欲综合网| 欧美日韩精品一区二区三区四区| 午夜av一区二区三区| 日韩精品中文字幕在线不卡尤物| 蜜桃一区二区三区在线| 26uuu精品一区二区三区四区在线| 国产精品1区二区.| 中文字幕日韩欧美一区二区三区| 色老头久久综合| 日韩精品1区2区3区| 久久综合99re88久久爱| 成人黄色电影在线 | 欧美国产精品一区| 色综合久久99| 日韩电影网1区2区| 国产日韩欧美在线一区| 91久久精品午夜一区二区| 一区二区三区日韩在线观看| 欧美群妇大交群中文字幕| 国产成人在线网站| 午夜精品久久久久| 国产免费成人在线视频| 欧美日韩国产免费| 不卡电影一区二区三区| 日一区二区三区| 国产精品激情偷乱一区二区∴| 欧美三级午夜理伦三级中视频| 国产剧情一区二区三区| 亚洲在线视频一区| 国产日韩av一区| 欧美日韩精品一区二区三区蜜桃 | 国产九色sp调教91| 亚洲福利电影网| 国产精品日韩精品欧美在线| 在线区一区二视频| 久久狠狠亚洲综合| 国产精品久久久99| 欧美午夜精品久久久| 国产99一区视频免费| 最新国产の精品合集bt伙计| 欧洲色大大久久| 蜜桃久久av一区| 一本色道亚洲精品aⅴ| 国产一区二区调教| 国产精品热久久久久夜色精品三区| 99视频一区二区| 亚洲成人久久影院| 欧美影院精品一区| 国产一区二区调教| 亚洲精品国产精品乱码不99| 欧美精品久久一区| 亚洲国产另类精品专区| 亚洲精品视频在线| 精品欧美一区二区在线观看| 成人av资源网站| 日韩成人精品视频| 天堂av在线一区| 久久综合九色综合久久久精品综合 | 日韩黄色片在线观看| 色天天综合久久久久综合片| 亚洲第一综合色| 欧美日韩三级视频| 亚洲精选视频在线| 自拍偷拍亚洲激情| 久久蜜臀精品av| www.亚洲在线| 韩日精品视频一区| 精品一区二区三区免费毛片爱| 久久嫩草精品久久久久| 97se亚洲国产综合自在线| 亚洲成av人**亚洲成av**| 欧美男男青年gay1069videost| 日韩高清中文字幕一区| 亚洲精品ww久久久久久p站| 成人av电影免费在线播放| 不卡一区二区在线| 国产在线精品一区二区夜色 | 久久国产剧场电影| 免费xxxx性欧美18vr| 国产精品私人影院| 欧美午夜片在线观看| 国产乱子伦视频一区二区三区| 亚洲午夜在线电影| 国产亚洲一区字幕| 91色乱码一区二区三区| 国产大陆亚洲精品国产| 亚洲成人福利片| 另类人妖一区二区av| 亚洲国产中文字幕在线视频综合| 国产欧美综合在线| 久久这里只有精品首页| 国产精品网曝门| 国产欧美一区二区三区沐欲| 日韩欧美你懂的| 欧美精选午夜久久久乱码6080| 欧美一级在线观看| 91精品国模一区二区三区| 在线免费观看日韩欧美| 在线观看网站黄不卡| 日韩欧美国产系列| 宅男噜噜噜66一区二区66| 欧美裸体一区二区三区| 欧美性高清videossexo| 精品国产乱码久久久久久浪潮| 欧美日韩一区三区| 欧美在线观看18| 色呦呦网站一区| 精品在线视频一区| 色一区在线观看| 色天使久久综合网天天| 一本久久a久久免费精品不卡| voyeur盗摄精品| k8久久久一区二区三区| 视频精品一区二区| 免费观看久久久4p| 久久99热99| 国产a精品视频| 91精品国产综合久久久久| 欧美日韩国产首页| 欧美一级国产精品| 精品国产乱码久久久久久夜甘婷婷 | 久久久国产精华| 亚洲一二三四在线观看| 天天综合日日夜夜精品| 全部av―极品视觉盛宴亚洲| 亚洲一区二区免费视频| 成人永久免费视频| 91麻豆国产香蕉久久精品| 色吊一区二区三区| 欧洲精品一区二区| 欧美激情一区二区三区全黄| 中文字幕中文字幕中文字幕亚洲无线 | 精品国产电影一区二区| 欧美精品一区二区三区高清aⅴ | 亚洲一区二区三区中文字幕| 日韩国产欧美视频| 国产激情视频一区二区在线观看 | 免费一级片91| 日韩一区二区在线观看| 亚洲人一二三区| 亚洲午夜久久久久久久久电影院| 老司机午夜精品| 国产综合色在线视频区| 日韩午夜电影av| 久久久久国产一区二区三区四区| 国产精品国产三级国产有无不卡| 中文字幕在线不卡| 成人黄色av电影| 欧美日免费三级在线| 欧美成人精品福利| 亚洲欧洲成人自拍| 成人毛片老司机大片| 欧美日韩国产首页在线观看| 久久久久97国产精华液好用吗| 久久久久久久久久电影| 国产黄色精品网站| 欧美精品在线一区二区| 国产精品亲子伦对白| 日韩亚洲电影在线| 国内一区二区视频| 欧美色国产精品| 国产三级精品三级在线专区| 一区二区三区在线观看视频| 国内精品伊人久久久久影院对白| 色天天综合久久久久综合片| 国产视频911| 国产日韩欧美综合一区| 日韩影视精彩在线| 91美女福利视频| 欧美精品一区二区三区蜜臀 | 亚洲欧美日韩久久| 国产精品夜夜嗨| 欧美一级国产精品| 日本高清不卡在线观看| 亚洲第一主播视频| 91香蕉视频污在线| 精品成人一区二区三区四区| 国产酒店精品激情| 日韩欧美国产高清| 日韩电影在线看| 色哟哟一区二区在线观看| 欧美国产日韩一二三区| 天堂成人国产精品一区| 欧美三级电影一区| 中文字幕佐山爱一区二区免费| 国产欧美视频一区二区| 激情综合色综合久久| 91精品欧美久久久久久动漫| 亚洲色图视频免费播放| 777欧美精品| 裸体健美xxxx欧美裸体表演|