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

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

?? mvmtp.h

?? sparselib庫
?? H
字號:
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*//*                                                                           *//*                                                                           *//*                   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.                                            *//*                                                                           *//*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/////      mvmtp.h  : basic templated numerical matrix class, storage//                  by columns (Fortran oriented.)//////#ifndef _MV_MATRIX_H_#define _MV_MATRIX_H_    #include "mvvtp.h"struct Matrix_ {    enum ref_type {  ref = 1 };};#include <iostream>       // for formatted printing of matrices#ifdef MV_MATRIX_BOUNDS_CHECK#   include <assert.h>#endiftemplate <class TYPE>class MV_ColMat{                                                                          private:                                                                      MV_Vector<TYPE> v_;           int dim0_;   // perferred to using dim_[2]. some compilers           int dim1_;   // refuse to initalize these in the constructor.           int lda_;           int ref_;   // true if this is declared as a reference vector,                        // i.e. it does not own the memory space, but                         // rather it is a view to another vector or array.    public:                                                                                                                                           /*::::::::::::::::::::::::::*/                                         /* Constructors/Destructors */                                         /*::::::::::::::::::::::::::*/                                                                                                                    MV_ColMat();                                         MV_ColMat( int,  int);     // some compilers have difficulty with inlined 'for' statements.    MV_ColMat( int,  int, const TYPE&);       // usual copy by value    // (can't use default parameter lda=m, because m is not a constant...)    //    MV_ColMat(TYPE*,  int m,  int n);    MV_ColMat(TYPE*,  int m,  int n,  int lda);    // the "reference" versions    //    //    MV_ColMat(TYPE*,  int m,  int n, Matrix_::ref_type i);    MV_ColMat(TYPE*,  int m,  int n,  int lda,                Matrix_::ref_type i);    MV_ColMat(const MV_ColMat<TYPE>&);     ~MV_ColMat();                                                                                                             /*::::::::::::::::::::::::::::::::*/                                   /*  Indices and access operations */                                   /*::::::::::::::::::::::::::::::::*/                                                                                                      inline TYPE&        operator()( int,  int);     inline const TYPE&  operator()( int,  int) const;     MV_ColMat<TYPE> operator()(const MV_VecIndex &I, const MV_VecIndex &J) ;    const MV_ColMat<TYPE> operator()(const MV_VecIndex &I, const MV_VecIndex &J) const;     int            size(int i) const;     MV_ColMat<TYPE>&        newsize( int,  int);    int ref() const { return ref_;}                                                                               /*::::::::::::::*/                                                     /*  Assignment  */                                                     /*::::::::::::::*/                                                                                                                        MV_ColMat<TYPE> & operator=(const MV_ColMat<TYPE>&);    MV_ColMat<TYPE> & operator=(const TYPE&);    friend std::ostream& operator<<(std::ostream &s, const MV_ColMat<TYPE> &A);};                                                                     template<class TYPE> int MV_ColMat<TYPE>::size(int i) const {    if (i==0) return dim0_;    if (i==1) return dim1_;    else    {     cerr << "Called MV_ColMat::size(" << i << ")  must be 0 or 1 " << endl;     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 size of matrix....template <class TYPE>MV_ColMat<TYPE>::MV_ColMat()  : v_(), dim0_(0), dim1_(0) , lda_(0), ref_(0){}                                                                template <class TYPE>MV_ColMat<TYPE>::MV_ColMat( int m,  int n) : v_(m*n),        dim0_(m), dim1_(n), lda_(m), ref_(0) {}template <class TYPE>MV_ColMat<TYPE>::MV_ColMat( int m,  int n, const TYPE &s) : v_(m*n),        dim0_(m), dim1_(n), lda_(m), ref_(0) {    operator=(s);}// operators and member functionstemplate <class TYPE>inline TYPE& MV_ColMat<TYPE>::operator()( int i,  int j){#ifdef MV_MATRIX_BOUNDS_CHECK    assert(0<=i && i<size(0));    assert(0<=j && j<size(1));#endif     return v_(j*lda_ + i);      // could use indirect addressing                                // instead...}template <class TYPE>inline const TYPE& MV_ColMat<TYPE>::operator()                    ( int i,  int j) const{#ifdef MV_MATRIX_BOUNDS_CHECK    assert(0<=i && i<size(0));    assert(0<=j && j<size(1));#endif    return v_(j*lda_ + i);}template <class TYPE>MV_ColMat<TYPE>& MV_ColMat<TYPE>::operator=(const TYPE & s) {    int M = size(0);    int N = size(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;}template <class TYPE>MV_ColMat<TYPE>& MV_ColMat<TYPE>::newsize( int M,  int N){    v_.newsize(M*N);    dim0_ = M;    dim1_ = N;    lda_ = M;    return *this;}template <class TYPE>MV_ColMat<TYPE>& MV_ColMat<TYPE>::operator=(const MV_ColMat<TYPE> & 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)              {            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;   }template <class TYPE>MV_ColMat<TYPE>::MV_ColMat(const MV_ColMat<TYPE> & m) :         v_(m.dim0_*m.dim1_), dim0_(m.dim0_),        dim1_(m.dim1_), ref_(0), lda_(m.dim0_){    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_;    }}template <class TYPE>inline MV_ColMat<TYPE>::MV_ColMat(TYPE* d,  int m,  int n,        Matrix_::ref_type i ):            v_(d,m*n, MV_Vector_::ref), dim0_(m), dim1_(n), lda_(m), ref_(i) {}template <class TYPE>inline MV_ColMat<TYPE>::MV_ColMat(TYPE* d,  int m,  int n,              int lda, Matrix_::ref_type i) :             v_(d, lda*n, MV_Vector_::ref), dim0_(m), dim1_(n), lda_(lda),             ref_(i) {}template <class TYPE>MV_ColMat<TYPE>::MV_ColMat(TYPE* 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];}template <class TYPE>MV_ColMat<TYPE>::MV_ColMat(TYPE* 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!!}template <class TYPE>MV_ColMat<TYPE> MV_ColMat<TYPE>::operator()(const MV_VecIndex &I, const MV_VecIndex &J){    // check that index is not out of bounds    //    if (I.end() >= dim0_  || J.end() >= dim1_)    {        cerr << "Matrix index: (" << I.start() << ":" << I.end()               << "," << J.start() << ":" << J.end()                << ") not a subset of (0:" << dim0_ - 1 << ", 0:"              << dim1_-1 << ") " << endl;        exit(1);    }    // this automatically returns a reference    //     return MV_ColMat<TYPE>(&v_[J.start()*lda_ + I.start()],             I.end() - I.start() + 1,             J.end() - J.start() + 1, lda_, Matrix_::ref);}template <class TYPE>const MV_ColMat<TYPE> MV_ColMat<TYPE>::operator()(const MV_VecIndex &I,     const MV_VecIndex &J) const{    cerr << "Const operator()(MV_VecIndex, MV_VecIndex) called " << endl;    // check that index is not out of bounds    //    if (I.end() >= dim0_  || J.end() >= dim1_)    {        cerr << "Matrix index: (" << I.start() << ":" << I.end()               << "," << J.start() << ":" << J.end()                << ") not a subset of (0:" << dim0_ - 1 << ", 0:"              << dim1_-1 << ") " << endl;        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<TYPE> *t =  (MV_ColMat<TYPE>*) this;    return MV_ColMat<TYPE>(&(t->v_[J.start()*lda_ + I.start()]),             I.end() - I.start() + 1,             J.end() - J.start() + 1, lda_, Matrix_::ref);}template <class TYPE>MV_ColMat<TYPE>::~MV_ColMat() {}template <class TYPE>ostream&   operator<<(ostream& s, const MV_ColMat<TYPE>& V){    int M = V.size(0);    int N = V.size(1);    for (int i=0; i<M; i++)    {        for (int j=0; j<N; j++)            s << V(i,j) << " " ;        s << endl;    }        return s;}#endif // _MV_MATRIX_H_

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲日本青草视频在线怡红院| 亚洲一区二区高清| 欧美美女一区二区在线观看| 激情综合网av| 午夜精品一区在线观看| 中文字幕电影一区| 欧美一级二级三级乱码| av电影一区二区| 国产一本一道久久香蕉| 日韩av电影免费观看高清完整版在线观看 | 国产一区在线不卡| 五月激情综合婷婷| 亚洲狠狠丁香婷婷综合久久久| 国产午夜精品一区二区三区视频| 欧美巨大另类极品videosbest| 91在线观看免费视频| 国产一区二区三区四区在线观看| 天天免费综合色| 艳妇臀荡乳欲伦亚洲一区| 国产精品久久久久四虎| 久久久天堂av| 欧美成人官网二区| 在线观看91av| 7777精品伊人久久久大香线蕉完整版| 色综合中文综合网| 这里只有精品免费| 欧美日韩一区二区三区在线看| eeuss国产一区二区三区| 国产一区二区不卡| 久久成人免费电影| 精品写真视频在线观看| 久久精品国产久精国产爱| 日韩成人伦理电影在线观看| 亚洲mv在线观看| 亚洲成人资源在线| 亚洲午夜久久久| 亚洲午夜激情网站| 五月婷婷久久丁香| 视频精品一区二区| 日本美女视频一区二区| 日本不卡高清视频| 久久精品国产第一区二区三区| 美国精品在线观看| 久久www免费人成看片高清| 激情伊人五月天久久综合| 久久99热国产| 国产99精品国产| www.性欧美| 欧美又粗又大又爽| 制服.丝袜.亚洲.另类.中文| 日韩精品一区二区三区在线播放 | 色综合天天综合网天天狠天天| 99久久er热在这里只有精品66| 波多野结衣亚洲一区| 91麻豆高清视频| 精品视频一区三区九区| 91精品国产综合久久小美女| 日韩欧美一级二级三级久久久| 精品成人私密视频| 国产精品全国免费观看高清| 亚洲欧洲中文日韩久久av乱码| 亚洲一区免费观看| 日本成人在线不卡视频| 国产中文字幕精品| 99久久国产综合色|国产精品| 欧美日韩在线三区| 久久久噜噜噜久噜久久综合| 亚洲人成精品久久久久久| 亚洲第一电影网| 国产一本一道久久香蕉| 色综合色狠狠天天综合色| 欧美日韩和欧美的一区二区| 精品欧美一区二区三区精品久久 | 宅男噜噜噜66一区二区66| 亚洲精品一区在线观看| 中文字幕亚洲综合久久菠萝蜜| 亚洲一卡二卡三卡四卡| 国产真实乱偷精品视频免| 色综合 综合色| 欧美zozo另类异族| 亚洲欧美日韩在线不卡| 美国三级日本三级久久99 | 成人午夜电影小说| 欧美午夜在线一二页| 欧美tickling网站挠脚心| 亚洲欧洲精品天堂一级| 日韩电影在线免费观看| 成人黄色av电影| 91精品国产综合久久久久| 亚洲国产精品av| 日本免费在线视频不卡一不卡二| 成人美女在线观看| 日韩三级在线观看| 一区二区三区四区不卡视频| 国产一区二区免费看| 欧美视频日韩视频| 亚洲国产成人一区二区三区| 日韩av高清在线观看| 色av成人天堂桃色av| 国产日韩在线不卡| 美女精品一区二区| 欧美日免费三级在线| 1区2区3区欧美| 国产成人精品影院| 欧美大白屁股肥臀xxxxxx| 亚洲国产精品久久久男人的天堂| 成人免费毛片高清视频| 日韩精品一区二区三区在线 | 欧美一区二区三区性视频| 国产精品福利av| 国产美女精品人人做人人爽| 91精品在线免费| 亚洲午夜在线观看视频在线| 91同城在线观看| 国产视频一区二区在线| 久久99精品一区二区三区| 欧美电影一区二区三区| 一区二区三区欧美日| 99久久精品国产一区二区三区| 久久久久国产精品免费免费搜索| 另类综合日韩欧美亚洲| 91精品一区二区三区在线观看| 亚洲一二三四在线| 在线观看亚洲成人| 亚洲激情在线激情| 91老师国产黑色丝袜在线| 国产精品久久久久久久蜜臀 | 玉足女爽爽91| 色菇凉天天综合网| 亚洲欧美国产77777| 成人av资源在线| 18成人在线视频| 色综合久久中文综合久久牛| 综合自拍亚洲综合图不卡区| 91网址在线看| 亚洲一区成人在线| 欧美精品在线一区二区三区| 日本欧美大码aⅴ在线播放| 欧美一区二区视频在线观看2022| 蜜桃久久精品一区二区| 日韩欧美黄色影院| 国产精品自拍一区| 久久精品日韩一区二区三区| 成人毛片视频在线观看| 亚洲三级在线播放| 欧美色图12p| 麻豆成人在线观看| 欧美激情一区在线| av一区二区三区在线| 亚洲卡通动漫在线| 欧美日产在线观看| 精品一区二区三区在线播放| 精品国产91乱码一区二区三区| 国产高清精品网站| 亚洲日本一区二区| 8x8x8国产精品| 国产精品一色哟哟哟| 亚洲欧洲日韩在线| 在线观看视频91| 美女www一区二区| 国产日韩精品视频一区| 色女孩综合影院| 日本麻豆一区二区三区视频| 国产欧美视频一区二区三区| 色欧美日韩亚洲| 美女精品自拍一二三四| 中文字幕在线观看一区二区| 欧美日韩在线直播| 国产成人高清在线| 亚洲一区二区三区四区不卡| 久久综合视频网| 欧洲中文字幕精品| 国产精品正在播放| 一卡二卡三卡日韩欧美| 精品国产91洋老外米糕| 色欧美88888久久久久久影院| 美洲天堂一区二卡三卡四卡视频| 国产精品色在线观看| 欧美精品电影在线播放| 成人v精品蜜桃久久一区| 青青草成人在线观看| 国产精品视频免费| 欧美电影精品一区二区| 色综合天天做天天爱| 国产盗摄精品一区二区三区在线| 亚洲国产欧美在线| 久久青草欧美一区二区三区| 欧美日韩免费电影| 成人av小说网| 另类综合日韩欧美亚洲| 亚洲国产一区视频| 国产精品美女一区二区三区| 91精品国产全国免费观看| 97久久久精品综合88久久| 久久精品国产成人一区二区三区| 亚洲一区二区三区四区五区中文| 日本一区二区三区国色天香| 欧美一区二区三区免费在线看| 91福利视频久久久久| 国产成人自拍网|