raw_copy.hpp
来自「矩阵运算源码最新版本」· HPP 代码 · 共 31 行
HPP
31 行
// 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_RAW_COPY_INCLUDE#define MTL_RAW_COPY_INCLUDEnamespace mtl {// Copies range of values into elements// As name says it is a raw operation and to used with uttermost caretemplate <typename Matrix, typename InputIterator> void raw_copy(InputIterator first, InputIterator last, Matrix& matrix){ using std::copy; copy(first, last, matrix.elements());}// Temporary solution// will be replaced by sequences and cursors generated by begin<all>(ma) and end<all>(ma)// Using segmented cursors, matrices with non-contigous element storing can be handled} // namespace mtl#endif // MTL_RAW_COPY_INCLUDE
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?