6 #ifndef USML_TYPES_SEQ_LOG_H
7 #define USML_TYPES_SEQ_LOG_H
9 #include <usml/types/seq_vector.h>
65 _increment[n-1] = _data[n] - _data[n-1];
66 _increment[n] = _increment[n-1] ;
86 initialize( first, increment, size ) ;
99 initialize( first, increment, (
size_type) size ) ;
115 last / first) /
log(increment)))) )
117 initialize( first, increment, _size ) ;
BOOST_UBLAS_INLINE boost::enable_if< boost::is_convertible< T2, typename E1::value_type >, typename matrix_binary_scalar2_traits< E1, const T2, scalar_max< typename E1::value_type, T2 > >::result_type >::type max(const matrix_expression< E1 > &e1, const T2 &e2)
Maximum between a matrix and a scalar.
Definition: matrix_math.h:143
seq_log(const seq_log ©)
Copies data from another sequence object.
Definition: seq_log.h:125
BOOST_UBLAS_INLINE matrix_unary1_traits< E, scalar_floor< typename E::value_type > >::result_type floor(const matrix_expression< E > &e)
Rounding elements of a matrix down to the nearest integer.
Definition: matrix_math.h:170
BOOST_UBLAS_INLINE boost::enable_if< boost::is_convertible< T2, typename E1::value_type >, typename matrix_binary_scalar2_traits< E1, const T2, scalar_min< typename E1::value_type, T2 > >::result_type >::type min(const matrix_expression< E1 > &e1, const T2 &e2)
Minimum between a matrix and a scalar.
Definition: matrix_math.h:158
vector_reference< self_type > closure_type
Definition: seq_log.h:25
seq_log(value_type first, value_type increment, value_type last)
Construct sequence using first value, increment value, and last value.
Definition: seq_log.h:112
virtual seq_vector * clone() const
Create a copy using a reference to the base class.
Definition: seq_log.h:129
Sequence defined by a logarithmically spaced grid of points.
Definition: seq_log.h:20
seq_log self_type
Definition: seq_log.h:22
const vector_reference< const self_type > const_closure_type
Definition: seq_log.h:24
virtual size_type find_index(value_type value)
Search for a value in this sequence.
Definition: seq_log.h:41
void initialize(value_type first, value_type increment, size_type size)
Construct sequence using first value, increment, and size.
Definition: seq_log.h:59
vector< value_type >::size_type size_type
Definition: seq_vector.h:44
seq_log(value_type first, value_type increment, int size)
Construct sequence using first value, increment, and size.
Definition: seq_log.h:96
BOOST_UBLAS_INLINE matrix_unary1_traits< E, scalar_log< typename E::value_type > >::result_type log(const matrix_expression< E > &e)
Natural logarithm of a matrix.
Definition: matrix_math.h:516
virtual ~seq_log()
Virtual destructor.
Definition: seq_log.h:74
vector< value_type >::difference_type difference_type
Definition: seq_vector.h:45
A read-only, monotonic sequence of values.
Definition: seq_vector.h:36
double value_type
Definition: seq_vector.h:43
seq_log(value_type first, value_type increment, size_type size)
Construct sequence using first value, increment, and size.
Definition: seq_log.h:83