Template Class qmatrix

Class Documentation

template<class T = double>
class qmatrix

Public Functions

inline qmatrix(const std::initializer_list<T> inputVec, size_t _row = 0, size_t _column = 0)
inline qmatrix(const std::vector<T> &inputVec, size_t _row = 0, size_t _column = 0)
inline qmatrix(size_t _row, size_t _column, T populate)
inline void resize(size_t _row = 0, size_t _column = 0, T populate = 0)
inline void clear()
inline qmatrix(size_t N, T populate)
inline qmatrix()
inline T &operator()(size_t i)
inline T operator()(size_t i) const
inline T &at(size_t i)
inline T at(size_t i) const
inline size_t size() const
inline size_t getrow() const
inline size_t getcolumn() const
inline T &operator()(size_t i, size_t j)
inline T operator()(size_t i, size_t j) const
inline T &at(size_t i, size_t j)
inline T at(size_t i, size_t j) const
inline T sum() const
inline T absSum() const
inline T trace() const
inline auto getdiagonal()
inline qmatrix<T> id(size_t _row = 0) const
inline qmatrix<double> real() const
inline qmatrix<double> imag() const
inline qmatrix<T> cTranspose() const
inline qmatrix operator*(const T &x) const
inline qmatrix operator/(const T &x) const
inline T *data()
inline const T *data() const
inline auto begin() const
inline auto end() const
inline void display()
inline qmatrix operator+(const qmatrix<T> &rhs) const
inline qmatrix operator-(const qmatrix<T> &rhs) const
inline qmatrix<T> dot(const qmatrix<T> &rhs, double talpha = 1.0)
inline std::vector<double> diag()
inline std::tuple<qmatrix<T>, qmatrix<T>, cm_vec> nonsys_diag_complex()
inline std::tuple<qmatrix<std::complex<T>>, qmatrix<std::complex<T>>, std::vector<std::complex<T>>> nonsys_diag_real()
inline qmatrix<T> krDot(const qmatrix<T> &rhs, double alpha = 1)
inline void unitary_transform(const qmatrix<T> &eigen_vector)

Friends

inline friend std::ostream &operator<<(std::ostream &out, const qmatrix<T> &val)