element_array.hpp
来自「矩阵运算源码最新版本」· HPP 代码 · 共 47 行
HPP
47 行
// 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 + =
减小字号Ctrl + -
显示快捷键?