/////////////////////////////////////////////////////////////////////////////// // // // The Template Matrix/Vector Library for C++ was created by Mike Jarvis // // Copyright (C) 1998 - 2016 // // All rights reserved // // // // The project is hosted at https://code.google.com/p/tmv-cpp/ // // where you can find the current version and current documention. // // // // For concerns or problems with the software, Mike may be contacted at // // mike_jarvis17 [at] gmail. // // // // This software is licensed under a FreeBSD license. The file // // TMV_LICENSE should have bee included with this distribution. // // It not, you can get a copy from https://code.google.com/p/tmv-cpp/. // // // // Essentially, you can use this software however you want provided that // // you include the TMV_LICENSE file in any distribution that uses it. // // // /////////////////////////////////////////////////////////////////////////////// // Need to define the following with #define statements. // (The given definition is for a regular Matrix. Modify as // appropriate for the various other matrices.) // // #define GENMATRIX GenMatrix // #define QUOTXM QuotXM #ifndef X #define X #endif #ifndef Y #define Y #endif #ifndef CT #define CT std::complex #endif #ifndef CCT #define CCT ConjRef > #endif #ifndef VCT #define VCT VarConjRef > #endif #ifndef GETM #define GETM .getM() #endif // x/m template inline QUOTXM operator/(T x, const GENMATRIX& m) { return QUOTXM(x,m); } template inline QUOTXM operator/(CT x, const GENMATRIX& m) { return QUOTXM(x,m); } template inline QUOTXM operator/(CCT x, const GENMATRIX& m) { return QUOTXM(CT(x),m); } template inline QUOTXM operator/(VCT x, const GENMATRIX& m) { return QUOTXM(CT(x),m); } template inline QUOTXM operator/(T x, const GENMATRIX& m) { return QUOTXM(CT(x),m); } template inline QUOTXM operator/(CCT x, const GENMATRIX& m) { return QUOTXM(CT(x),m); } template inline QUOTXM operator/(VCT x, const GENMATRIX& m) { return QUOTXM(CT(x),m); } // x%m template inline QUOTXM operator%(T x, const GENMATRIX& m) { return QUOTXM(x,m); } template inline QUOTXM operator%(CT x, const GENMATRIX& m) { return QUOTXM(x,m); } template inline QUOTXM operator%(CCT x, const GENMATRIX& m) { return QUOTXM(CT(x),m); } template inline QUOTXM operator%(VCT x, const GENMATRIX& m) { return QUOTXM(CT(x),m); } template inline QUOTXM operator%(T x, const GENMATRIX& m) { return QUOTXM(CT(x),m); } template inline QUOTXM operator%(CCT x, const GENMATRIX& m) { return QUOTXM(CT(x),m); } template inline QUOTXM operator%(VCT x, const GENMATRIX& m) { return QUOTXM(CT(x),m); } #undef X #undef Y #undef GETM