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

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

?? mvmi.cc

?? sparselib庫
?? CC
字號:
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*//*                                                                           *//*                                                                           *//*                   MV++ Numerical Matrix/Vector C++ Library                *//*                             MV++ Version 1.5                              *//*                                                                           *//*                                  R. Pozo                                  *//*               National Institute of Standards and Technology              *//*                                                                           *//*                                  NOTICE                                   *//*                                                                           *//* Permission to use, copy, modify, and distribute this software and         *//* its documentation for any purpose and without fee is hereby granted       *//* provided that this permission notice appear in all copies and             *//* supporting documentation.                                                 *//*                                                                           *//* Neither the Institution (National Institute of Standards and Technology)  *//* nor the author makes any representations about the suitability of this    *//* software for any purpose.  This software is provided ``as is''without     *//* expressed or implied warranty.                                            *//*                                                                           *//*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/////          Basic matrix class (int precision)//#include <iostream>                                 #include "mvmi.h" int MV_ColMat_int::dim(int i) const {    if (i==0) return dim0_;    if (i==1) return dim1_;    else    {     std::cerr << "Called MV_ColMat::dim(" << i << ")  must be 0 or 1 " << "\n";     exit(1);    }    // never should be here, but many compilers warn about not    // returning a value    return 0;}// NOTE: null construct have ref_ flag turned OFF, otherwise, we can//          never reset the dim of matrix....MV_ColMat_int::MV_ColMat_int()  : v_(), dim0_(0), dim1_(0) , lda_(0), ref_(0){}                                                                MV_ColMat_int::MV_ColMat_int( int m,  int n) : v_(m*n),        dim0_(m), dim1_(n), lda_(m), ref_(0) {}MV_ColMat_int::MV_ColMat_int( int m,  int n, const int &s) : v_(m*n),        dim0_(m), dim1_(n), lda_(m), ref_(0) {    operator=(s);}// operators and member functionsMV_ColMat_int& MV_ColMat_int::operator=(const int & s) {    int M = dim(0);    int N = dim(1);    if (lda_ == M)      // if continuous, then just assign as a ?        v_ =  s;        // single long vector.    else    {    // this should run much faster than the just accessing each (i,j)    // element individually     //        MV_VecIndex I(0,M-1);        for (int j=0; j<N; j++)        {            v_(I) = s;            I += lda_;        }    }    return *this;}MV_ColMat_int& MV_ColMat_int::newsize( int M,  int N){    v_.newsize(M*N);    dim0_ = M;    dim1_ = N;    lda_ = M;    return *this;}MV_ColMat_int& MV_ColMat_int::operator=(const MV_ColMat_int & m) {    int lM = dim0_;     // left hand arg  (this)    int lN = dim1_;    int rM = m.dim0_;   // right hand arg (m)    int rN = m.dim1_;    // if the left-hand side is a matrix reference, the we copy the    // elements of m *into* the region specfied by the reference.    // i.e. inject().    if (ref_)    {        // check conformance,               if (lM != rM  || lN != rN)              {            std::cerr << "MV_ColMatRef::operator=  non-conformant assignment.\n";            exit(1);        }    }    else    {        newsize(rM,rN);    }    // at this point the left hand and right hand sides are conformant    // this should run much faster than the just accessing each (i,j)    // element individually     // if both sides are contigous, then just copy as one vector    if ( lM == lda_ && rM == m.lda_)    {        MV_VecIndex I(0,rM*rN-1);        v_(I) = m.v_(I);    }    else    {        // slower way...        MV_VecIndex I(0,rM-1);        MV_VecIndex K(0,rM-1);        for (int j=0; j<rN; j++)        {            v_(I) = m.v_(K);            I += lda_;            K += m.lda_;        }    }    return *this;   }MV_ColMat_int::MV_ColMat_int(const MV_ColMat_int & m) :         v_(m.dim0_*m.dim1_), dim0_(m.dim0_),        dim1_(m.dim1_), lda_(m.dim0_), ref_(0){    int M = m.dim0_;    int N = m.dim1_;    // this should run much faster than the just accessing each (i,j)    // element individually     MV_VecIndex I(0,M-1);    MV_VecIndex K(0,M-1);    for (int j=0; j<N; j++)    {        v_(I) = m.v_(K);        I += lda_;        K += m.lda_;    }}MV_ColMat_int::MV_ColMat_int(int* d,  int m,  int n) :    v_(m*n), dim0_(m), dim1_(n), lda_(m), ref_(0){    int mn = m*n;    // d is contiguous, so just copy 1-d vector    for (int i=0; i< mn; i++)            v_[i] = d[i];}MV_ColMat_int::MV_ColMat_int(int* d,  int m,  int n,          int lda) :    v_(m*n), dim0_(m), dim1_(n), lda_(lda), ref_(0){    for (int j=0; j< n; j++)        for (int i=0; i<m; i++)            operator()(i,j) = d[j*lda + i];   // could be made faster!!}MV_ColMat_int MV_ColMat_int::operator()(const MV_VecIndex &I, const MV_VecIndex &J){    // check that index is not out of bounds    //    if (I.end() >= dim0_  || J.end() >= dim1_)    {        std::cerr << "Matrix index: (" << I.start() << ":" << I.end()               << "," << J.start() << ":" << J.end()                << ") not a subset of (0:" << dim0_ - 1 << ", 0:"              << dim1_-1 << ") " << "\n";        exit(1);    }    // this automatically returns a reference    //     return MV_ColMat_int(&v_[J.start()*lda_ + I.start()],             I.end() - I.start() + 1,             J.end() - J.start() + 1, lda_, MV_Matrix_::ref);}const MV_ColMat_int MV_ColMat_int::operator()(const MV_VecIndex &I,     const MV_VecIndex &J) const{    std::cerr << "Const operator()(MV_VecIndex, MV_VecIndex) called " << "\n";    // check that index is not out of bounds    //    if (I.end() >= dim0_  || J.end() >= dim1_)    {        std::cerr << "Matrix index: (" << I.start() << ":" << I.end()               << "," << J.start() << ":" << J.end()                << ") not a subset of (0:" << dim0_ - 1 << ", 0:"              << dim1_-1 << ") " << "\n";        exit(1);    }    // this automatically returns a reference.  we need to     // "cast away" constness here, so the &v_[] arg will    // not cause a compiler error.    //    MV_ColMat_int *t =  (MV_ColMat_int*) this;    return MV_ColMat_int(&(t->v_[J.start()*lda_ + I.start()]),             I.end() - I.start() + 1,             J.end() - J.start() + 1, lda_, MV_Matrix_::ref);}MV_ColMat_int::~MV_ColMat_int() {}std::ostream&   operator<<(std::ostream& s, const MV_ColMat_int& V){    int M = V.dim(0);    int N = V.dim(1);    for (int i=0; i<M; i++)    {        for (int j=0; j<N; j++)            s << V(i,j) << " " ;        s << "\n";    }        return s;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧洲精品视频在线观看| 国产一区二区网址| 欧美精品v国产精品v日韩精品| 亚洲欧美日韩国产另类专区| 在线影院国内精品| 亚洲1区2区3区4区| 91精品国产91久久久久久一区二区| 日韩国产欧美在线视频| 精品国产乱码久久久久久久| 国产麻豆成人精品| 国产精品福利av| 欧美系列亚洲系列| 麻豆中文一区二区| 国产精品久久久久久久久久免费看| jlzzjlzz亚洲日本少妇| 亚洲va欧美va天堂v国产综合| 日韩欧美你懂的| 成人免费va视频| 亚洲一区二区三区激情| 欧美一区二区三区在| 国产精品一区二区三区99| 综合激情成人伊人| 欧美一区二区二区| 91网址在线看| 奇米888四色在线精品| 日本一区二区三区免费乱视频| 91亚洲资源网| 激情伊人五月天久久综合| 日韩美女久久久| 日韩一区二区免费在线电影| 成人激情校园春色| 日本不卡123| 亚洲视频免费在线观看| 欧美一区二区三区系列电影| www.久久久久久久久| 天堂影院一区二区| 日本午夜一本久久久综合| 国产午夜精品一区二区三区视频| 欧美中文一区二区三区| 国产成人午夜视频| 婷婷久久综合九色综合绿巨人| 中文字幕av一区二区三区高| 777色狠狠一区二区三区| 91原创在线视频| 豆国产96在线|亚洲| 日韩在线a电影| 一区二区三区在线播| 国产日韩精品一区二区三区| 日韩视频免费观看高清完整版| 91网站在线播放| 国产精品中文有码| 久久av老司机精品网站导航| 亚洲成人免费视| 一区二区在线观看免费| 国产精品久久久久桃色tv| 2021中文字幕一区亚洲| 欧美一级一级性生活免费录像| 色爱区综合激月婷婷| 99久久国产免费看| 成人综合婷婷国产精品久久蜜臀| 蜜桃视频第一区免费观看| 婷婷丁香久久五月婷婷| 一区二区三区国产精品| 亚洲欧美激情小说另类| 最新国产成人在线观看| 国产精品短视频| 中文字幕中文字幕一区二区| 中文字幕av不卡| 中文字幕在线播放不卡一区| 国产日产欧美一区| 欧美极品少妇xxxxⅹ高跟鞋| 国产视频一区在线播放| 久久久国产精华| 国产日韩欧美精品一区| 久久久国产午夜精品| 国产无一区二区| 国产精品久久久久天堂| 综合激情成人伊人| 一区二区三区国产精华| 一级日本不卡的影视| 亚洲尤物在线视频观看| 亚洲一卡二卡三卡四卡五卡| 亚洲成人激情社区| 免费国产亚洲视频| 国产又黄又大久久| 处破女av一区二区| 99精品视频在线观看免费| 色就色 综合激情| 777午夜精品免费视频| 日韩欧美一区在线| 久久一夜天堂av一区二区三区| 国产婷婷色一区二区三区 | 亚洲免费在线视频一区 二区| 亚洲欧洲www| 亚洲大片精品永久免费| 麻豆成人久久精品二区三区红| 国产综合成人久久大片91| 国产1区2区3区精品美女| 不卡区在线中文字幕| 欧美自拍偷拍一区| 日韩视频一区二区三区在线播放 | 久久成人羞羞网站| 国产乱一区二区| av不卡一区二区三区| 欧美日韩亚洲另类| 精品88久久久久88久久久| 国产精品久久看| 日韩专区一卡二卡| 九九热在线视频观看这里只有精品| 国产91富婆露脸刺激对白| 在线这里只有精品| 久久先锋影音av| 一区二区三区在线观看网站| 麻豆精品一二三| 91色porny| 日韩欧美激情一区| 中文字幕一区不卡| 久久激情五月激情| 91色综合久久久久婷婷| 日韩视频一区二区三区在线播放| 国产精品久久久久永久免费观看 | 亚洲无线码一区二区三区| 韩国视频一区二区| 欧美综合色免费| 国产视频911| 日韩国产在线观看一区| 成人av午夜影院| 337p粉嫩大胆噜噜噜噜噜91av | 欧美日韩一区二区三区在线| 亚洲精品一区二区精华| 亚洲婷婷综合色高清在线| 蜜桃在线一区二区三区| 日本韩国一区二区| 国产视频一区不卡| 美女高潮久久久| 欧美日韩一区二区三区四区| 国产精品美女一区二区在线观看| 日韩成人精品在线| 在线观看成人小视频| 国产精品国产精品国产专区不蜜 | 亚洲国产视频在线| 91社区在线播放| 国产精品九色蝌蚪自拍| 国产一区二区三区久久久| 欧美一区二区人人喊爽| 亚洲成av人片在www色猫咪| 91香蕉视频污| 亚洲欧洲国产日本综合| 国产不卡视频一区| 久久精品人人做人人综合| 欧美a级一区二区| 91精品国产综合久久精品| 亚洲成在人线在线播放| 在线观看日韩精品| 亚洲精品免费电影| 日本韩国一区二区三区视频| 亚洲人成电影网站色mp4| av电影天堂一区二区在线| 国产精品蜜臀av| 成人av影视在线观看| 国产精品久久久久久妇女6080| 国产精品99久久久久久有的能看| 日韩精品一区二区在线| 久久精品国产精品青草| 日韩一卡二卡三卡四卡| 热久久一区二区| 欧美xxxxx牲另类人与| 蜜桃av一区二区在线观看| 日韩一区二区三区免费看 | 国产精品女人毛片| 成人午夜激情片| 国产婷婷一区二区| 成人激情黄色小说| 亚洲免费观看视频| 欧美色欧美亚洲另类二区| 亚洲第一狼人社区| 日韩三级电影网址| 国产精品一区2区| 欧美激情在线一区二区| 91色婷婷久久久久合中文| 亚洲久草在线视频| 欧美高清激情brazzers| 美女网站在线免费欧美精品| 欧美va亚洲va| 国产精品资源网| 亚洲欧美一区二区三区国产精品| 欧美亚洲国产bt| 日产精品久久久久久久性色| 精品国产乱子伦一区| 国产99一区视频免费| 亚洲精品免费一二三区| 欧美一级二级在线观看| 成人开心网精品视频| 一区二区三区毛片| 日韩一二三区不卡| 国产91丝袜在线观看| 一级精品视频在线观看宜春院 | 国产亚洲欧美一级| 色婷婷精品大在线视频| 麻豆视频一区二区|