parameter.hpp

来自「矩阵运算源码最新版本」· HPP 代码 · 共 41 行

HPP
41 行
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?