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

📄 inserter.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_MATRIX_INSERTER_INCLUDE#define MTL_MATRIX_INSERTER_INCLUDE#include <boost/numeric/mtl/mtl_fwd.hpp>#include <boost/numeric/mtl/operation/update.hpp>#include <boost/numeric/mtl/detail/trivial_inserter.hpp>namespace mtl { namespace matrix {template <typename Matrix, 	  typename Updater = mtl::operations::update_store<typename Matrix::value_type> >struct inserter   : public mtl::detail::trivial_inserter<Matrix, Updater>{    typedef mtl::detail::trivial_inserter<Matrix, Updater>     base;    typedef typename Matrix::size_type   size_type;    explicit inserter(Matrix& matrix, size_type slot_size = 0) : base(matrix, slot_size) {}};template <typename Elt, typename Parameters, typename Updater>struct inserter<compressed2D<Elt, Parameters>, Updater>  : compressed2D_inserter<Elt, Parameters, Updater>{    typedef compressed2D<Elt, Parameters>     matrix_type;    typedef typename matrix_type::size_type   size_type;    typedef compressed2D_inserter<Elt, Parameters, Updater > base;    explicit inserter(matrix_type& matrix, size_type slot_size = 5) : base(matrix, slot_size) {}};}} // namespace mtl::matrix#endif // MTL_MATRIX_INSERTER_INCLUDE

⌨️ 快捷键说明

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