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

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

?? concepts.hpp

?? 矩陣運算源碼最新版本
?? HPP
?? 第 1 頁 / 共 2 頁
字號:
// ======================================// Algebraic concepts with two connectors// ======================================// -----------------// Based on functors// -----------------// More generic, less handy to useauto concept GenericRing<typename AddOp, typename MultOp, typename Element>  : AbelianGroup<AddOp, Element>,    SemiGroup<MultOp, Element>,    algebra::Ring<AddOp, MultOp, Element>{};auto concept GenericCommutativeRing<typename AddOp, typename MultOp, typename Element>  : GenericRing<AddOp, MultOp, Element>,    CommutativeSemiGroup<MultOp, Element>{};auto concept GenericRingWithIdentity<typename AddOp, typename MultOp, typename Element>  : GenericRing<AddOp, MultOp, Element>,    Monoid<MultOp, Element>,    algebra::RingWithIdentity<AddOp, MultOp, Element>{};auto concept GenericCommutativeRingWithIdentity<typename AddOp, typename MultOp, typename Element>  : GenericRingWithIdentity<AddOp, MultOp, Element>,    GenericCommutativeRing<AddOp, MultOp, Element>,    CommutativeMonoid<MultOp, Element>{};// autoconcept GenericDivisionRing<typename AddOp, typename MultOp, typename Element>  : GenericRingWithIdentity<AddOp, MultOp, Element>,    algebra::DivisionRing<AddOp, MultOp, Element>{    requires std::Convertible<inverse_result_type, Element>;};    auto concept GenericField<typename AddOp, typename MultOp, typename Element>  : GenericDivisionRing<AddOp, MultOp, Element>,    GenericCommutativeRingWithIdentity<AddOp, MultOp, Element>,    algebra::Field<AddOp, MultOp, Element>{};// ------------------// Based on operators // ------------------// Handier, less generic// Alternative definitions use MultiplicativeMonoid<Element> for Ring// and call such concepts Pseudo-Ringauto concept Ring<typename Element>  : AdditiveAbelianGroup<Element>,    MultiplicativeSemiGroup<Element>,    GenericRing<math::add<Element>, math::mult<Element>, Element>{};auto concept CommutativeRing<typename Element>  : Ring<Element>,    MultiplicativeCommutativeSemiGroup<Element>,    GenericCommutativeRing<math::add<Element>, math::mult<Element>, Element>    {};auto concept RingWithIdentity<typename Element>  : Ring<Element>,    MultiplicativeMonoid<Element>,    GenericRingWithIdentity<math::add<Element>, math::mult<Element>, Element>{}; auto concept CommutativeRingWithIdentity<typename Element>  : RingWithIdentity<Element>,    CommutativeRing<Element>,    MultiplicativeCommutativeMonoid<Element>,    GenericCommutativeRingWithIdentity<math::add<Element>, math::mult<Element>, Element>{};concept DivisionRing<typename Element>  : RingWithIdentity<Element>,    MultiplicativePartiallyInvertibleMonoid<Element>,     GenericDivisionRing<math::add<Element>, math::mult<Element>, Element>{    axiom NonZeroDivisibility(Element x)    {	if (x != zero(x)) 	    x / x == one(x);    }};    auto concept Field<typename Element>  : DivisionRing<Element>,    CommutativeRingWithIdentity<Element>,    GenericField<math::add<Element>, math::mult<Element>, Element>{};// ======================// Miscellaneous concepts// ======================// that shall find a better place later// EqualityComparable will have the != when defaults are supported// At this point the following won't needed anymoreauto concept FullEqualityComparable<typename T, typename U = T>{  //requires std::EqualityComparable<T, U>;    bool operator==(const T&, const U&);    bool operator!=(const T&, const U&);};// Closure of EqualityComparable under a binary operation:// That is, the result of this binary operation is also EqualityComparable// with itself and with the operand type.auto concept Closed2EqualityComparable<typename Operation, typename Element>  : BinaryIsoFunction<Operation, Element>{    requires FullEqualityComparable<Element>;    requires FullEqualityComparable< BinaryIsoFunction<Operation, Element>::result_type >;    requires FullEqualityComparable< Element, BinaryIsoFunction<Operation, Element>::result_type >;    requires FullEqualityComparable< BinaryIsoFunction<Operation, Element>::result_type, Element >;};// LessThanComparable will have the other operators when defaults are supported// At this point the following won't needed anymoreauto concept FullLessThanComparable<typename T, typename U = T>{    bool operator<(const T&, const U&);    bool operator<=(const T&, const U&);    bool operator>(const T&, const U&);    bool operator>=(const T&, const U&);};// Same for LessThanComparableauto concept Closed2LessThanComparable<typename Operation, typename Element>  : BinaryIsoFunction<Operation, Element>{    requires FullLessThanComparable<Element>;    requires FullLessThanComparable< BinaryIsoFunction<Operation, Element>::result_type >;    requires FullLessThanComparable< Element, BinaryIsoFunction<Operation, Element>::result_type >;    requires FullLessThanComparable< BinaryIsoFunction<Operation, Element>::result_type, Element >;};#if 0auto concept NumericOperatorResultConvertible<typename T>  : AddableWithAssign<T>,    SubtractableWithAssign<T>,    MultiplicableWithAssign<T>,    DivisibleWithAssign<T>{    requires std::Convertible< AddableWithAssign<T>::result_type, T>;    requires std::Convertible< SubtractableWithAssign<T>::result_type, T>;    requires std::Convertible< MultiplicableWithAssign<T>::result_type, T>;    requires std::Convertible< DivisibleWithAssign<T>::result_type, T>;}#endifauto concept AdditionResultConvertible<typename T>{    typename result_type;    result_type operator+(T t, T u);    requires std::Convertible<result_type, T>;    typename result_type;    result_type operator+=(T& t, T u);    requires std::Convertible<result_type, T>;};    auto concept SubtractionResultConvertible<typename T>{    typename result_type;    result_type operator-(T t, T u);    requires std::Convertible<result_type, T>;    typename result_type;    result_type operator-=(T& t, T u);    requires std::Convertible<result_type, T>;};    auto concept NumericOperatorResultConvertible<typename T>  : AdditionResultConvertible<T>,    SubtractionResultConvertible<T>{};// ====================// Default Concept Maps// ====================#ifndef LA_NO_CONCEPT_MAPS// ==============// Integral Types// ==============template <typename T>  requires std::SignedIntegral<T>concept_map CommutativeRingWithIdentity<T> {}template <typename T>  requires std::UnsignedIntegral<T>concept_map AdditiveCommutativeMonoid<T> {}template <typename T>  requires std::UnsignedIntegral<T>concept_map MultiplicativeCommutativeMonoid<T> {}// ====================// Floating Point Types// ====================template <typename T>  requires Float<T>concept_map Field<T> {}template <typename T>  requires Complex<T>concept_map Field<T> {}// ===========// Min and Max// ===========// Draft version: defined generously unless there will be problems with some typestemplate <typename Element>concept_map CommutativeMonoid< max<Element>, Element > {    // Why do we need this?    typedef Element identity_result_type;}template <typename Element>concept_map CommutativeMonoid< min<Element>, Element >{    // Why do we need this?    typedef Element identity_result_type;}#endif // LA_NO_CONCEPT_MAPS#endif // __GXX_CONCEPTS__// =================================================// Concept to specify return type of abs (and norms)// =================================================#ifdef __GXX_CONCEPTS__// Concept to specify to specify projection of scalar value to comparable type// For instance as return type of abs// Minimalist definition for maximal applicabilityauto concept Magnitude<typename T>{    typename type = T;};template <typename T>concept_map Magnitude<std::complex<T> >{    typedef T type;}// Concept for norms etc., which are real values in mathematical definitionsauto concept RealMagnitude<typename T>  : Magnitude<T>{    requires FullEqualityComparable<type>;    requires FullLessThanComparable<type>;    requires Field<type>;    type sqrt(type);    // typename sqrt_result;    // sqrt_result sqrt(type);    // requires std::Convertible<sqrt_result, type>;    // using std::abs;    type abs(T);}#else  // now without conceptstemplate <typename T>struct Magnitude{    typename type = T;};template <typename T>struct Magnitude<std::complex<T> >{    typedef T type;}template <typename T> struct RealMagnitude  : public Magnitude<T>{}#endif  // __GXX_CONCEPTS__// Type trait version both available with and w/o concepts (TBD: Macro finally :-( )// For the moment everything is its own magnitude type, unless stated otherwisetemplate <typename T>struct magnitude_type_trait{    typedef T type;};template <typename T>struct magnitude_type_trait< std::complex<T> >{    typedef T type;};// =========================================// Concepts for convenience (many from Rolf)// =========================================#ifdef __GXX_CONCEPTS__//The following concepts Addable, Subtractable etc. differ from std::Addable, std::Subtractable //etc. in so far that no default for result_type is provided, thus allowing automated return type deductionauto concept Addable<typename T, typename U = T>{    typename result_type;    result_type operator+(const T& t, const U& u);};   // Usually + and += are both defined// + can be efficiently derived from += but not vice versaauto concept AddableWithAssign<typename T, typename U = T>{    typename assign_result_type;      assign_result_type operator+=(T& x, U y);    // Operator + is by default defined with +=    typename result_type;      result_type operator+(T x, U y);#if 0    {	// Default requires std::CopyConstructible, without default not needed	Element tmp(x);                       	return tmp += y;                      defaults NYS    }#endif };auto concept Subtractable<typename T, typename U = T>{    typename result_type;    result_type operator-(const T& t, const U& u);};  // Usually - and -= are both defined// - can be efficiently derived from -= but not vice versaauto concept SubtractableWithAssign<typename T, typename U = T>{    typename assign_result_type;      assign_result_type operator-=(T& x, U y);    // Operator - is by default defined with -=    typename result_type;      result_type operator-(T x, U y);#if 0    {	// Default requires std::CopyConstructible, without default not needed	Element tmp(x);                       	return tmp -= y;                      defaults NYS    }#endif };auto concept Multiplicable<typename T, typename U = T>{    typename result_type;    result_type operator*(const T& t, const U& u);};// Usually * and *= are both defined// * can be efficiently derived from *= but not vice versaauto concept MultiplicableWithAssign<typename T, typename U = T>{    typename assign_result_type;      assign_result_type operator*=(T& x, U y);    // Operator * is by default defined with *=    typename result_type;      result_type operator*(T x, U y);#if 0    {	// Default requires std::CopyConstructible, without default not needed	Element tmp(x);                       	return tmp *= y;                      defaults NYS    }#endif };auto concept Divisible<typename T, typename U = T>{    typename result_type;    result_type operator / (const T&, const U&);};// Usually * and *= are both defined// * can be efficiently derived from *= but not vice versaauto concept DivisibleWithAssign<typename T, typename U = T>{    typename assign_result_type;      assign_result_type operator*=(T& x, U y);    // Operator * is by default defined with *=    typename result_type;      result_type operator*(T x, U y);#if 0    {	// Default requires std::CopyConstructible, without default not needed	Element tmp(x);                       	return tmp *= y;                      defaults NYS    }#endif };auto concept Transposable<typename T>{    typename result_type;    result_type trans(T&);};  // Unary Negation -> Any suggestions for better names?! Is there a word as "negatable"?!auto concept Negatable<typename S>{    typename result_type = S;    result_type operator-(const S&);};// Or HasAbs?using std::abs;auto concept AbsApplicable<typename S>{    // There are better ways to define abs than the way it is done in std    // Likely we replace the using one day    typename result_type;    result_type abs(const S&);};using std::conj;auto concept HasConjugate<typename S>{    typename result_type;    result_type conj(const S&);};    // We need the following; might be placed somewhere else latertemplate <Float T>concept_map HasConjugate<T> {     typedef T result_type;    result_type conj(const T& s) {return s;}}// Dot product to be defined:auto concept Dottable<typename T, typename U = T>{    typename result_type = T;    result_type dot(const T&t, const U& u);};    auto concept OneNormApplicable<typename V> {    typename result_type;    result_type one_norm(const V&);};auto concept TwoNormApplicable<typename V> {    typename result_type;    result_type two_norm(const V&);};auto concept InfinityNormApplicable<typename V> {    typename result_type;    result_type inf_norm(const V&);};#endif  // __GXX_CONCEPTS__} // namespace math#endif // LA_CONCEPTS_INCLUDE

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美性受极品xxxx喷水| 亚洲欧美日韩中文播放| 欧美一区2区视频在线观看| 欧美三级韩国三级日本三斤| 国产网站一区二区| 国产精品国产成人国产三级| 九色|91porny| 日韩精品一区二区三区视频 | 欧美天堂一区二区三区| 亚洲日本乱码在线观看| 国产成人av电影在线观看| 精品少妇一区二区三区在线视频| 久久99日本精品| 欧美疯狂做受xxxx富婆| 全国精品久久少妇| 日韩一区二区在线播放| 琪琪久久久久日韩精品| 精品美女在线观看| 国产精品亚洲专一区二区三区| 中文一区二区完整视频在线观看| 国产91精品久久久久久久网曝门| 中文字幕免费一区| av资源网一区| 日本免费新一区视频| 久久嫩草精品久久久精品一| 国产自产视频一区二区三区| 国产精品色婷婷| 色视频成人在线观看免| 美女尤物国产一区| 中文字幕国产一区| 欧美精品色综合| 成人一区二区视频| 亚洲国产日韩av| 日本成人超碰在线观看| 色噜噜狠狠成人网p站| 亚洲高清中文字幕| 久久精品人人做人人综合| 色综合久久久久综合体| 免费看黄色91| 亚洲午夜羞羞片| 1000部国产精品成人观看| 欧美高清在线一区二区| 欧美丝袜丝交足nylons图片| 国产高清无密码一区二区三区| 午夜私人影院久久久久| 中文字幕欧美激情一区| 2020国产成人综合网| 在线免费不卡视频| 91在线精品秘密一区二区| 丁香亚洲综合激情啪啪综合| 毛片不卡一区二区| 艳妇臀荡乳欲伦亚洲一区| 亚洲欧美欧美一区二区三区| 国产喂奶挤奶一区二区三区| 日韩免费成人网| 日韩欧美电影在线| 精品国产一二三区| 精品国产一区二区在线观看| 26uuu国产电影一区二区| 欧美一区二区三区电影| 日韩视频一区二区三区在线播放| 欧美在线不卡一区| 久久精品综合网| 日韩区在线观看| 欧美v亚洲v综合ⅴ国产v| 精品日本一线二线三线不卡| 中文字幕一区二区三区av| 久久综合久色欧美综合狠狠| 国产精品少妇自拍| 亚洲天堂久久久久久久| 亚洲国产精品久久不卡毛片| 日本成人在线不卡视频| 国产+成+人+亚洲欧洲自线| www.欧美精品一二区| 欧美日韩日本视频| 国产日韩欧美精品电影三级在线| 国产色婷婷亚洲99精品小说| 亚洲免费观看高清完整版在线观看熊| 亚洲午夜免费福利视频| 韩国欧美国产一区| 色琪琪一区二区三区亚洲区| 欧美一区二区三区喷汁尤物| 欧美国产激情一区二区三区蜜月| 亚洲v中文字幕| 成人免费毛片高清视频| 欧美精品aⅴ在线视频| 国产精品久久久久久亚洲伦| 午夜婷婷国产麻豆精品| 波多野结衣中文字幕一区| 日韩手机在线导航| 亚洲一区在线观看免费观看电影高清 | 亚洲精品一区二区三区影院| 悠悠色在线精品| 波多野结衣亚洲| 久久亚洲影视婷婷| 激情综合亚洲精品| 91麻豆精品国产自产在线观看一区| 亚洲影院免费观看| 亚洲色图欧美在线| 97se亚洲国产综合自在线不卡| 亚洲午夜羞羞片| 精品久久久久久久久久久久包黑料 | 91精品国产综合久久久久久| 国产精品综合网| 亚洲美女一区二区三区| 8x福利精品第一导航| 成人av先锋影音| 国内外成人在线| 亚洲精选视频在线| 91麻豆精品久久久久蜜臀| 国产高清成人在线| 午夜精品免费在线| 欧美精品一区二区三区在线| 成人涩涩免费视频| 亚洲成av人片一区二区梦乃| 日韩欧美高清一区| 99久久国产综合色|国产精品| 亚洲国产欧美另类丝袜| 日韩精品最新网址| 91久久精品国产91性色tv| 日韩电影一区二区三区四区| 国产亚洲精品资源在线26u| 色综合久久久久久久久| 日本不卡视频在线观看| 亚洲欧洲日韩综合一区二区| 91精品国产综合久久久久久久 | 91精品国产福利在线观看| 视频一区二区三区在线| 国产日产亚洲精品系列| 欧美视频中文一区二区三区在线观看| 国产一区二区三区免费看| 奇米精品一区二区三区在线观看| 一区二区三区在线观看国产| 色菇凉天天综合网| 成人免费av资源| 国产河南妇女毛片精品久久久| 亚洲国产日日夜夜| 亚洲综合激情网| 日韩毛片视频在线看| 久久久精品国产免大香伊| 欧美日韩国产天堂| 国产成人免费在线视频| 免费在线看成人av| 亚洲国产三级在线| 一区二区成人在线视频| 国产精品入口麻豆九色| 久久蜜桃一区二区| 在线观看日韩电影| 色综合久久久久综合99| 国产精品夜夜嗨| 国产在线视频一区二区| 精品制服美女丁香| 国产在线精品免费| 亚洲精选视频在线| 中文字幕在线观看一区| 亚洲三级小视频| 亚洲一卡二卡三卡四卡| 午夜精品免费在线| 日韩高清一区在线| 美腿丝袜亚洲三区| 国产东北露脸精品视频| 丁香婷婷综合激情五月色| 成人午夜激情影院| 在线国产亚洲欧美| 日韩久久精品一区| 国产精品高潮呻吟| 欧美aaaaaa午夜精品| www.日本不卡| 日韩一区二区三区四区五区六区| 国产乱码精品1区2区3区| 久久精品国产77777蜜臀| 免费成人在线播放| 成人在线视频首页| 欧美一级午夜免费电影| 中文字幕亚洲区| 爽好多水快深点欧美视频| av一区二区三区| 日韩精品一区二区三区中文不卡 | 国产乱一区二区| 欧美成人高清电影在线| 麻豆精品视频在线观看| 久久你懂得1024| 波多野洁衣一区| 一区二区免费看| 在线电影院国产精品| 一区二区三区加勒比av| 成人av网址在线| 91丨九色丨蝌蚪富婆spa| 精品久久久久久久久久久久包黑料| 亚洲欧美日本在线| 一本大道久久a久久精二百| 国产欧美一区二区三区网站 | 久久久精品影视| 成人性生交大合| 国产精品久久免费看| 久久er精品视频| 国产日韩精品一区| 不卡一区在线观看| 亚洲欧美一区二区三区极速播放| 成人黄色一级视频|