Sandals  v0.0.0
A C++ library for ODEs/DAEs integration
Loading...
Searching...
No Matches
Sandals.hh File Reference
Include dependency graph for Sandals.hh:

Go to the source code of this file.

Namespaces

namespace  Sandals
 The namespace for the Sandals library.
 

Macros

#define INCLUDE_SANDALS_HH
 
#define SANDALS_ERROR(MSG)
 
#define SANDALS_ASSERT(COND, MSG)
 
#define SANDALS_WARNING(MSG)
 
#define SANDALS_ASSERT_WARNING(COND, MSG)
 

Typedefs

using Sandals::Real = double
 
using Sandals::Integer = int
 
using Sandals::Vector0 = Eigen::Vector<Real, 0>
 
using Sandals::Matrix0 = Eigen::Matrix<Real, 0, 0>
 
using Sandals::Vector1 = Eigen::Vector<Real, 1>
 
using Sandals::Matrix1 = Eigen::Matrix<Real, 1, 1>
 
using Sandals::Vector2 = Eigen::Vector<Real, 2>
 
using Sandals::Matrix2 = Eigen::Matrix<Real, 2, 2>
 
using Sandals::Vector3 = Eigen::Vector<Real, 3>
 
using Sandals::Matrix3 = Eigen::Matrix<Real, 3, 3>
 
using Sandals::Vector4 = Eigen::Vector<Real, 4>
 
using Sandals::Matrix4 = Eigen::Matrix<Real, 4, 4>
 
using Sandals::Vector5 = Eigen::Vector<Real, 5>
 
using Sandals::Matrix5 = Eigen::Matrix<Real, 5, 5>
 
using Sandals::Vector6 = Eigen::Vector<Real, 6>
 
using Sandals::Matrix6 = Eigen::Matrix<Real, 6, 6>
 
using Sandals::Vector7 = Eigen::Vector<Real, 7>
 
using Sandals::Matrix7 = Eigen::Matrix<Real, 7, 7>
 
using Sandals::Vector8 = Eigen::Vector<Real, 8>
 
using Sandals::Matrix8 = Eigen::Matrix<Real, 8, 8>
 
using Sandals::Vector9 = Eigen::Vector<Real, 9>
 
using Sandals::Matrix9 = Eigen::Matrix<Real, 9, 9>
 
using Sandals::VectorX = Eigen::Vector<Real, Eigen::Dynamic>
 
using Sandals::MatrixX = Eigen::Matrix<Real, Eigen::Dynamic, Eigen::Dynamic>
 

Functions

std::string Sandals::Info ()
 
void Sandals::Info (std::ostream &os)
 

Variables

static Real const Sandals::EPSILON = std::numeric_limits<Real>::epsilon()
 
static Real const Sandals::SQRT_EPSILON = std::sqrt(EPSILON)
 
static Real const Sandals::CBRT_EPSILON = std::cbrt(EPSILON)
 
static Real const Sandals::EPSILON_HIGH = Real(1.0e-12)
 
static Real const Sandals::EPSILON_MEDIUM = Real(1.0e-10)
 
static Real const Sandals::EPSILON_LOW = Real(1.0e-08)
 
static Real const Sandals::INFTY = std::numeric_limits<Real>::infinity()
 
static Real const Sandals::QUIET_NAN = std::numeric_limits<Real>::quiet_NaN()
 
static Real const Sandals::PI = Real(3.141592653589793238462643383279502884197)
 
static Real const Sandals::PIMUL2 = Real(6.283185307179586476925286766559005768394)
 
static Real const Sandals::PIDIV2 = Real(1.570796326794896619231321691639751442098)
 
static Real const Sandals::DEG2RAD = Real(0.017453292519943295769236907684886127134)
 
static Real const Sandals::RAD2DEG = Real(57.29577951308232087679815481410517033240)
 
static Vector1 const Sandals::NAN_VEC1 = Vector1::Constant(QUIET_NAN)
 
static Matrix1 const Sandals::NAN_MAT1 = Matrix1::Constant(QUIET_NAN)
 
static Vector1 const Sandals::ZEROS_VEC1 = Vector1::Zero()
 
static Matrix1 const Sandals::ZEROS_MAT1 = Matrix1::Zero()
 
static Vector1 const Sandals::ONES_VEC1 = Vector1::Ones()
 
static Matrix1 const Sandals::ONES_MAT1 = Matrix1::Ones()
 
static Matrix1 const Sandals::IDENTITY_MAT1 = Matrix1::Identity()
 
static Vector2 const Sandals::NAN_VEC2 = Vector2::Constant(QUIET_NAN)
 
static Matrix2 const Sandals::NAN_MAT2 = Matrix2::Constant(QUIET_NAN)
 
static Vector2 const Sandals::ZEROS_VEC2 = Vector2::Zero()
 
static Matrix2 const Sandals::ZEROS_MAT2 = Matrix2::Zero()
 
static Vector2 const Sandals::ONES_VEC2 = Vector2::Ones()
 
static Matrix2 const Sandals::ONES_MAT2 = Matrix2::Ones()
 
static Matrix2 const Sandals::IDENTITY_MAT2 = Matrix2::Identity()
 
static Vector3 const Sandals::NAN_VEC3 = Vector3::Constant(QUIET_NAN)
 
static Matrix3 const Sandals::NAN_MAT3 = Matrix3::Constant(QUIET_NAN)
 
static Vector3 const Sandals::ZEROS_VEC3 = Vector3::Zero()
 
static Matrix3 const Sandals::ZEROS_MAT3 = Matrix3::Zero()
 
static Vector3 const Sandals::ONES_VEC3 = Vector3::Ones()
 
static Matrix3 const Sandals::ONES_MAT3 = Matrix3::Ones()
 
static Matrix3 const Sandals::IDENTITY_MAT3 = Matrix3::Identity()
 
static Vector4 const Sandals::NAN_VEC4 = Vector4::Constant(QUIET_NAN)
 
static Matrix4 const Sandals::NAN_MAT4 = Matrix4::Constant(QUIET_NAN)
 
static Vector4 const Sandals::ZEROS_VEC4 = Vector4::Zero()
 
static Matrix4 const Sandals::ZEROS_MAT4 = Matrix4::Zero()
 
static Vector4 const Sandals::ONES_VEC4 = Vector4::Ones()
 
static Matrix4 const Sandals::ONES_MAT4 = Matrix4::Ones()
 
static Matrix4 const Sandals::IDENTITY_MAT4 = Matrix4::Identity()
 
static Vector5 const Sandals::NAN_VEC5 = Vector5::Constant(QUIET_NAN)
 
static Matrix5 const Sandals::NAN_MAT5 = Matrix5::Constant(QUIET_NAN)
 
static Vector5 const Sandals::ZEROS_VEC5 = Vector5::Zero()
 
static Matrix5 const Sandals::ZEROS_MAT5 = Matrix5::Zero()
 
static Vector5 const Sandals::ONES_VEC5 = Vector5::Ones()
 
static Matrix5 const Sandals::ONES_MAT5 = Matrix5::Ones()
 
static Matrix5 const Sandals::IDENTITY_MAT5 = Matrix5::Identity()
 
static Vector6 const Sandals::NAN_VEC6 = Vector6::Constant(QUIET_NAN)
 
static Matrix6 const Sandals::NAN_MAT6 = Matrix6::Constant(QUIET_NAN)
 
static Vector6 const Sandals::ZEROS_VEC6 = Vector6::Zero()
 
static Matrix6 const Sandals::ZEROS_MAT6 = Matrix6::Zero()
 
static Vector6 const Sandals::ONES_VEC6 = Vector6::Ones()
 
static Matrix6 const Sandals::ONES_MAT6 = Matrix6::Ones()
 
static Matrix6 const Sandals::IDENTITY_MAT6 = Matrix6::Identity()
 
static Vector7 const Sandals::NAN_VEC7 = Vector7::Constant(QUIET_NAN)
 
static Matrix7 const Sandals::NAN_MAT7 = Matrix7::Constant(QUIET_NAN)
 
static Vector7 const Sandals::ZEROS_VEC7 = Vector7::Zero()
 
static Matrix7 const Sandals::ZEROS_MAT7 = Matrix7::Zero()
 
static Vector7 const Sandals::ONES_VEC7 = Vector7::Ones()
 
static Matrix7 const Sandals::ONES_MAT7 = Matrix7::Ones()
 
static Matrix7 const Sandals::IDENTITY_MAT7 = Matrix7::Identity()
 
static Vector8 const Sandals::NAN_VEC8 = Vector8::Constant(QUIET_NAN)
 
static Matrix8 const Sandals::NAN_MAT8 = Matrix8::Constant(QUIET_NAN)
 
static Vector8 const Sandals::ZEROS_VEC8 = Vector8::Zero()
 
static Matrix8 const Sandals::ZEROS_MAT8 = Matrix8::Zero()
 
static Vector8 const Sandals::ONES_VEC8 = Vector8::Ones()
 
static Matrix8 const Sandals::ONES_MAT8 = Matrix8::Ones()
 
static Matrix8 const Sandals::IDENTITY_MAT8 = Matrix8::Identity()
 
static Vector9 const Sandals::NAN_VEC9 = Vector9::Constant(QUIET_NAN)
 
static Matrix9 const Sandals::NAN_MAT9 = Matrix9::Constant(QUIET_NAN)
 
static Vector9 const Sandals::ZEROS_VEC9 = Vector9::Zero()
 
static Matrix9 const Sandals::ZEROS_MAT9 = Matrix9::Zero()
 
static Vector9 const Sandals::ONES_VEC9 = Vector9::Ones()
 
static Matrix9 const Sandals::ONES_MAT9 = Matrix9::Ones()
 
static Matrix9 const Sandals::IDENTITY_MAT9 = Matrix9::Identity()
 

Macro Definition Documentation

◆ INCLUDE_SANDALS_HH

#define INCLUDE_SANDALS_HH

◆ SANDALS_ASSERT

#define SANDALS_ASSERT ( COND,
MSG )
Value:
if (!(COND)) \
{ \
SANDALS_ERROR(MSG); \
}

◆ SANDALS_ASSERT_WARNING

#define SANDALS_ASSERT_WARNING ( COND,
MSG )
Value:
if (!(COND)) \
{ \
SANDALS_WARNING(MSG); \
}

◆ SANDALS_ERROR

#define SANDALS_ERROR ( MSG)
Value:
{ \
std::ostringstream os; \
os << MSG; \
throw std::runtime_error(os.str()); \
}

◆ SANDALS_WARNING

#define SANDALS_WARNING ( MSG)
Value:
{ \
std::cout << MSG << std::endl; \
}