aboutsummaryrefslogtreecommitdiff
path: root/chaos/src/chaos_base.hpp
diff options
context:
space:
mode:
authorTim Blechmann <timblech@users.sourceforge.net>2005-06-16 13:02:02 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:11:59 +0200
commitd1ed55f96f9cecc818844006fb36cd58ca70da5e (patch)
tree4d1ed404ba54ad7f360cec5ad3d0b38ec4b24840 /chaos/src/chaos_base.hpp
parent2434290915cda6ed855e4dc2249312153b995817 (diff)
- parameter searching (broken)
- misc. updates svn path=/trunk/externals/tb/; revision=3192
Diffstat (limited to 'chaos/src/chaos_base.hpp')
-rw-r--r--chaos/src/chaos_base.hpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/chaos/src/chaos_base.hpp b/chaos/src/chaos_base.hpp
index 959afdf..5e2a99f 100644
--- a/chaos/src/chaos_base.hpp
+++ b/chaos/src/chaos_base.hpp
@@ -29,27 +29,33 @@ class chaos_base
{
public:
- t_sample get_data(unsigned int i)
+ inline t_sample get_data(unsigned int i)
{
return (t_sample)m_data[i]; /* this is not save, but fast */
}
- int get_num_eq()
+ inline int get_num_eq()
{
return m_num_eq;
}
- void m_perform()
+ inline void m_perform()
{
m_step();
+ m_bash_denormals();
m_verify();
}
- std::map<const t_symbol*,int> attr_ind;
+ std::map<const t_symbol*,int> attr_ind;
+ // TableAnyMap attr_ind; /* thomas fragen :-) */
// check the integrity of the system
virtual void m_verify()
{
+ }
+
+ inline void m_bash_denormals()
+ {
for (int i = 0; i != get_num_eq(); ++i)
{
#ifndef DOUBLE_PRECISION
@@ -58,7 +64,7 @@ public:
#endif
}
};
-
+
data_t m_data[MAXDIMENSION]; // state of the system
protected: