⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hermitian_view.hpp

📁 矩阵运算源码最新版本
💻 HPP
字号:
// Software License for MTL// // Copyright (c) 2007 The Trustees of Indiana University. All rights reserved.// Authors: Peter Gottschling and Andrew Lumsdaine// // This file is part of the Matrix Template Library// // See also license.mtl.txt in the distribution.#ifndef MTL_HERMITIAN_VIEW_INCLUDE#define MTL_HERMITIAN_VIEW_INCLUDE#include <boost/numeric/mtl/matrix/map_view.hpp>#include <boost/numeric/mtl/matrix/transposed_view.hpp>#include <boost/numeric/mtl/operation/conj.hpp>namespace mtl { namespace matrix {template <class Matrix> struct hermitian_view     : public map_view<sfunctor::conj<typename Matrix::value_type>, 		      transposed_view<Matrix> >{    typedef sfunctor::conj<typename Matrix::value_type>            functor_type;    typedef map_view<functor_type, transposed_view<Matrix> >       base;    hermitian_view(const Matrix& matrix)	: trans_view(const_cast<Matrix&>(matrix)), base(functor_type(), trans_view)    {}    #if 0    hermitian_view(boost::shared_ptr<Matrix> p)	: trans_view(p), base(functor_type(), trans_view)    {}#endif  private:    transposed_view<Matrix>  trans_view;};}} // namespace mtl::matrix#endif // MTL_HERMITIAN_VIEW_INCLUDE

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -