📄 element_array.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_ELEMENT_ARRAY_INCLUDE#define MTL_ELEMENT_ARRAY_INCLUDEnamespace mtl { namespace matrix { template <typename Array, typename Rows, typename Cols> struct element_array_t { explicit element_array_t(const Array& array, const Rows& rows, const Cols& cols) : array(array), rows(rows), cols(cols) {} const Array& array; const Rows& rows; const Cols& cols; }; }template <typename Array, typename Rows, typename Cols>matrix::element_array_t<Array, Rows, Cols>inline element_array(const Array& array, const Rows& rows, const Cols& cols){ return matrix::element_array_t<Array, Rows, Cols>(array, rows, cols);}template <typename Array, typename Rows>matrix::element_array_t<Array, Rows, Rows>inline element_array(const Array& array, const Rows& rows){ return matrix::element_array_t<Array, Rows, Rows>(array, rows, rows);}} // namespace mtl#endif // MTL_ELEMENT_ARRAY_INCLUDE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -