📄 parameter.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_PARAMETERS_INCLUDE#define MTL_MATRIX_PARAMETERS_INCLUDE#include <boost/static_assert.hpp>#include <boost/numeric/mtl/utility/tag.hpp>#include <boost/numeric/mtl/detail/index.hpp>#include <boost/numeric/mtl/matrix/dimension.hpp>namespace mtl { namespace matrix {/// Type for bundling template parameters of common matrix typestemplate <typename Orientation= row_major, typename Index= index::c_index, typename Dimensions= mtl::non_fixed::dimensions, bool OnStack= false, bool RValue= false>struct parameters { typedef Orientation orientation; typedef Index index; typedef Dimensions dimensions; static bool const on_stack= OnStack; static bool const is_rvalue= RValue; // to enable shallow copy // Matrix dimensions must be known at compile time to be on the stack BOOST_STATIC_ASSERT(( !on_stack || dimensions::is_static ));};}} // namespace mtl::matrix#endif // MTL_MATRIX_PARAMETERS_INCLUDE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -