realroot_doc 0.1.1
|
#include <system_descartes1d.hpp>
Definition at line 59 of file system_descartes1d.hpp.
bsearch_castel | ( | const In & | bzrep, |
unsigned | sz | ||
) | [inline] |
Definition at line 65 of file system_descartes1d.hpp.
References mmx::sparse::copy(), and bsearch_castel< real_t >::m_data.
~bsearch_castel | ( | ) | [inline] |
Definition at line 70 of file system_descartes1d.hpp.
References bsearch_castel< real_t >::m_data.
{ delete[] m_data; };
void reach | ( | real_t * | lbzrep, |
real_t & | a, | ||
real_t & | b, | ||
const real_t & | eps | ||
) | [inline] |
Definition at line 73 of file system_descartes1d.hpp.
References mmx::brnops::eval(), bsearch_castel< real_t >::m_data, and bsearch_castel< real_t >::m_sz.
{ real_t m; if ( lbzrep[m_sz-1] > lbzrep[0] ) do if ( brnops::eval( m_data, m_sz, m = (a+b)/2.0 ) < 0 ) a = m; else b = m; while( b-a > eps ) ; else do if ( brnops::eval( m_data, m_sz, m = (a+b)/2.0 ) < 0 ) b = m; else a = m; while( b-a > eps ); };
real_t* m_data |
Definition at line 61 of file system_descartes1d.hpp.
Referenced by bsearch_castel< real_t >::bsearch_castel(), bsearch_castel< real_t >::reach(), and bsearch_castel< real_t >::~bsearch_castel().
unsigned m_sz |
Definition at line 62 of file system_descartes1d.hpp.
Referenced by bsearch_castel< real_t >::reach().