/usr/include/boost/numeric/odeint/external/vexcl
Edit: /usr/include/boost/numeric/odeint/external/vexcl/vexcl_same_instance.hpp (1562B)
/*
[auto_generated]
boost/numeric/odeint/external/vexcl/vexcl_same_instance.hpp
[begin_description]
Check if two VexCL containers are the same instance.
[end_description]
Copyright 2009-2011 Karsten Ahnert
Copyright 2009-2011 Mario Mulansky
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or
copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_NUMERIC_ODEINT_EXTERNAL_VEXCL_VEXCL_SAME_INSTANCE_HPP_INCLUDED
#define BOOST_NUMERIC_ODEINT_EXTERNAL_VEXCL_VEXCL_SAME_INSTANCE_HPP_INCLUDED
#include
#include
#include
namespace boost {
namespace numeric {
namespace odeint {
template
struct same_instance_impl< vex::vector , vex::vector >
{
static bool same_instance( const vex::vector &x1 , const vex::vector &x2 )
{
return
static_cast*>(&x1) ==
static_cast*>(&x2);
}
};
template
struct same_instance_impl< vex::multivector , vex::multivector >
{
static bool same_instance( const vex::multivector &x1 , const vex::multivector &x2 )
{
return
static_cast*>(&x1) ==
static_cast*>(&x2);
}
};
} // namespace odeint
} // namespace numeric
} // namespace boost
#endif // BOOST_NUMERIC_ODEINT_EXTERNAL_VEXCL_VEXCL_SAME_INSTANCE_HPP_INCLUDED