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

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

?? mvmf.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 (float precision)//#include <iostream>                                 #include "mvmf.h" int MV_ColMat_float::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_float::MV_ColMat_float()  : v_(), dim0_(0), dim1_(0) , lda_(0), ref_(0){}                                                                MV_ColMat_float::MV_ColMat_float( int m,  int n) : v_(m*n),        dim0_(m), dim1_(n), lda_(m), ref_(0) {}MV_ColMat_float::MV_ColMat_float( int m,  int n, const float &s) : v_(m*n),        dim0_(m), dim1_(n), lda_(m), ref_(0) {    operator=(s);}// operators and member functionsMV_ColMat_float& MV_ColMat_float::operator=(const float & 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_float& MV_ColMat_float::newsize( int M,  int N){    v_.newsize(M*N);    dim0_ = M;    dim1_ = N;    lda_ = M;    return *this;}MV_ColMat_float& MV_ColMat_float::operator=(const MV_ColMat_float & 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_float::MV_ColMat_float(const MV_ColMat_float & 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_float::MV_ColMat_float(float* 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_float::MV_ColMat_float(float* 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_float MV_ColMat_float::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_float(&v_[J.start()*lda_ + I.start()],             I.end() - I.start() + 1,             J.end() - J.start() + 1, lda_, MV_Matrix_::ref);}const MV_ColMat_float MV_ColMat_float::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_float *t =  (MV_ColMat_float*) this;    return MV_ColMat_float(&(t->v_[J.start()*lda_ + I.start()]),             I.end() - I.start() + 1,             J.end() - J.start() + 1, lda_, MV_Matrix_::ref);}MV_ColMat_float::~MV_ColMat_float() {}std::ostream&   operator<<(std::ostream& s, const MV_ColMat_float& 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一区二区三区免费野_久草精品视频
亚洲一级在线观看| 丝袜美腿成人在线| 久久色中文字幕| 日韩精品一区二区三区在线播放| 欧美三级视频在线观看| 欧美午夜片在线看| 在线不卡a资源高清| 日韩一二三四区| 久久久另类综合| 国产精品进线69影院| 亚洲精品成人少妇| 亚洲一区二区三区在线看| 日韩电影在线一区二区三区| 久久97超碰国产精品超碰| 国产麻豆视频一区| 99在线视频精品| 欧美性受xxxx黑人xyx性爽| 欧美精品一二三四| 久久这里只有精品6| 中文字幕制服丝袜一区二区三区 | 国产精品99精品久久免费| 国产高清久久久| 91女厕偷拍女厕偷拍高清| 欧美日韩国产大片| 精品久久久久一区| 中文字幕制服丝袜成人av| 天堂蜜桃91精品| 国产凹凸在线观看一区二区| 色婷婷久久99综合精品jk白丝| 8x8x8国产精品| 中文字幕免费观看一区| 亚洲成人av免费| 成人免费观看男女羞羞视频| 欧美午夜片在线看| 欧美国产丝袜视频| 日韩高清不卡在线| 色偷偷久久一区二区三区| 日韩欧美电影一区| 亚洲综合成人在线视频| 国产尤物一区二区| 91精品蜜臀在线一区尤物| 一区免费观看视频| 国产一本一道久久香蕉| 欧美色综合久久| 中文字幕国产一区| 精品一区二区成人精品| 欧美性大战xxxxx久久久| 亚洲国产精品t66y| 精品中文字幕一区二区| 色88888久久久久久影院按摩 | 国产99久久久精品| 日韩一区二区免费在线观看| 一区二区高清免费观看影视大全| 激情文学综合插| 欧美日本韩国一区二区三区视频| 国产精品毛片a∨一区二区三区| 日韩精品三区四区| 欧洲人成人精品| 中文字幕综合网| 成人性色生活片| 久久九九久久九九| 国内精品伊人久久久久av影院| 91麻豆精品国产91| 午夜精品福利一区二区三区av| 一本色道综合亚洲| 亚洲人123区| 91视频免费观看| 中文字幕在线观看不卡| av在线不卡观看免费观看| 日本一二三四高清不卡| 大美女一区二区三区| 国产欧美一区二区精品忘忧草 | 欧美日韩大陆在线| 亚洲国产精品综合小说图片区| 99精品欧美一区二区三区小说 | 婷婷六月综合亚洲| 欧美在线|欧美| 午夜久久久久久久久久一区二区| 91久久人澡人人添人人爽欧美 | 欧美美女喷水视频| 天天综合天天做天天综合| 欧美综合久久久| 丝瓜av网站精品一区二区| 91精品午夜视频| 韩日欧美一区二区三区| 久久久精品黄色| 91在线免费看| 亚洲午夜一区二区三区| 欧美一级黄色片| 国产精品一区二区久久不卡| 国产精品美女久久久久高潮| 99久久精品免费观看| 亚洲精品视频免费观看| 欧美精品免费视频| 国产美女久久久久| 亚洲精选免费视频| 日韩三级在线观看| 成人在线视频首页| 一区二区三区久久| 久久天天做天天爱综合色| 91丨porny丨国产入口| 亚欧色一区w666天堂| 久久伊人中文字幕| 色哟哟国产精品免费观看| 毛片一区二区三区| 国产精品久久久久久久浪潮网站 | 国产精品一级片| 亚洲色图欧美在线| 日韩一区二区三区观看| 99久久精品国产导航| 日本不卡的三区四区五区| 国产精品久久久久影院老司 | 成人美女在线视频| 亚洲成a人片在线不卡一二三区 | 日韩欧美国产午夜精品| 国产99久久久精品| 蜜桃一区二区三区在线| 亚洲欧美综合色| 日韩免费一区二区| 欧美三级日韩三级| 99久久国产综合精品女不卡| 麻豆精品在线看| 亚洲成人福利片| 亚洲欧美日韩国产综合| 久久久久国产精品厨房| 欧美一区二区三区视频在线观看| 97久久超碰国产精品| 国产精品综合在线视频| 玖玖九九国产精品| 亚洲国产日韩av| 一区二区三区四区在线| 最新国产成人在线观看| 久久久久久久久免费| 日韩你懂的电影在线观看| 欧美疯狂性受xxxxx喷水图片| 97精品超碰一区二区三区| 盗摄精品av一区二区三区| 激情图区综合网| 国产呦精品一区二区三区网站| 日本aⅴ亚洲精品中文乱码| 亚洲永久精品大片| 亚洲午夜久久久久久久久电影院| 亚洲婷婷综合久久一本伊一区| 久久夜色精品国产欧美乱极品| 欧美大片日本大片免费观看| 91精品国产欧美一区二区18| 欧美午夜视频网站| 欧美日韩一区不卡| 欧美日韩1区2区| 欧美另类一区二区三区| 欧美精品一卡两卡| 欧美一区二区三区白人| 日韩西西人体444www| 精品少妇一区二区三区在线播放 | 色婷婷国产精品| 91麻豆免费看| 日本道精品一区二区三区| 欧洲在线/亚洲| 欧美三电影在线| 91精品欧美综合在线观看最新 | 国产精品卡一卡二| 国产精品女主播av| 亚洲欧洲成人自拍| 一区二区免费看| 午夜免费欧美电影| 精品亚洲国内自在自线福利| 狠狠色丁香九九婷婷综合五月| 国产综合色精品一区二区三区| 国产一区二区精品久久99| 成人开心网精品视频| 色欧美片视频在线观看在线视频| 欧美亚洲一区二区三区四区| 4438x成人网最大色成网站| ww久久中文字幕| 亚洲日本在线看| 美女网站一区二区| 国产成人精品三级| 欧洲一区在线观看| 久久综合中文字幕| 亚洲人妖av一区二区| 免费在线观看一区二区三区| 成人高清av在线| 欧美高清一级片在线| 久久精品综合网| 亚洲一区二区三区四区中文字幕| 蜜臀av性久久久久av蜜臀妖精| 成人av小说网| 欧美一区二区黄色| 亚洲天堂精品在线观看| 免费日本视频一区| 91丨porny丨国产| 亚洲精品在线观看网站| 亚洲精品国久久99热| 国产资源精品在线观看| 欧美亚洲国产怡红院影院| 国产日韩精品一区二区三区| 亚洲二区在线观看| 成人av电影在线| 精品电影一区二区三区 | 黑人精品欧美一区二区蜜桃|