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

📄 mat_expr.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_MAT_EXPR_INCLUDE#define MTL_MAT_EXPR_INCLUDEnamespace mtl { namespace matrix {/// Base class for CRTP with matricestemplate <typename Matrix>struct mat_expr{    typedef Matrix   ref_type;    explicit mat_expr(Matrix& ref) : ref(ref) {}    ref_type&        ref;};/// Base class for CRTP with dense matricestemplate <typename Matrix>struct dmat_expr    : public mat_expr<Matrix>{    typedef mat_expr<Matrix> base;    explicit dmat_expr(Matrix& ref) : base(ref) {}};/// Base class for CRTP with sparse matricestemplate <typename Matrix>struct smat_expr    : public mat_expr<Matrix>{    typedef mat_expr<Matrix> base;    explicit smat_expr(Matrix& ref) : base(ref) {}};}} // namespace mtl::matrix#endif // MTL_MAT_EXPR_INCLUDE

⌨️ 快捷键说明

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