Lines Matching refs:rhs

4838 ae_bool ae_c_eq(ae_complex lhs,   ae_complex rhs)  in ae_c_eq()  argument
4841 volatile double x2 = rhs.x; in ae_c_eq()
4843 volatile double y2 = rhs.y; in ae_c_eq()
4847 ae_bool ae_c_neq(ae_complex lhs, ae_complex rhs) in ae_c_neq() argument
4850 volatile double x2 = rhs.x; in ae_c_neq()
4852 volatile double y2 = rhs.y; in ae_c_neq()
4856 ae_complex ae_c_add(ae_complex lhs, ae_complex rhs) in ae_c_add() argument
4859 result.x = lhs.x+rhs.x; in ae_c_add()
4860 result.y = lhs.y+rhs.y; in ae_c_add()
4864 ae_complex ae_c_mul(ae_complex lhs, ae_complex rhs) in ae_c_mul() argument
4867 result.x = lhs.x*rhs.x-lhs.y*rhs.y; in ae_c_mul()
4868 result.y = lhs.x*rhs.y+lhs.y*rhs.x; in ae_c_mul()
4872 ae_complex ae_c_sub(ae_complex lhs, ae_complex rhs) in ae_c_sub() argument
4875 result.x = lhs.x-rhs.x; in ae_c_sub()
4876 result.y = lhs.y-rhs.y; in ae_c_sub()
4880 ae_complex ae_c_div(ae_complex lhs, ae_complex rhs) in ae_c_div() argument
4885 if( fabs(rhs.y)<fabs(rhs.x) ) in ae_c_div()
4887 e = rhs.y/rhs.x; in ae_c_div()
4888 f = rhs.x+rhs.y*e; in ae_c_div()
4894 e = rhs.x/rhs.y; in ae_c_div()
4895 f = rhs.y+rhs.x*e; in ae_c_div()
4902 ae_bool ae_c_eq_d(ae_complex lhs, double rhs) in ae_c_eq_d() argument
4905 volatile double x2 = rhs; in ae_c_eq_d()
4911 ae_bool ae_c_neq_d(ae_complex lhs, double rhs) in ae_c_neq_d() argument
4914 volatile double x2 = rhs; in ae_c_neq_d()
4920 ae_complex ae_c_add_d(ae_complex lhs, double rhs) in ae_c_add_d() argument
4923 result.x = lhs.x+rhs; in ae_c_add_d()
4928 ae_complex ae_c_mul_d(ae_complex lhs, double rhs) in ae_c_mul_d() argument
4931 result.x = lhs.x*rhs; in ae_c_mul_d()
4932 result.y = lhs.y*rhs; in ae_c_mul_d()
4936 ae_complex ae_c_sub_d(ae_complex lhs, double rhs) in ae_c_sub_d() argument
4939 result.x = lhs.x-rhs; in ae_c_sub_d()
4944 ae_complex ae_c_d_sub(double lhs, ae_complex rhs) in ae_c_d_sub() argument
4947 result.x = lhs-rhs.x; in ae_c_d_sub()
4948 result.y = -rhs.y; in ae_c_d_sub()
4952 ae_complex ae_c_div_d(ae_complex lhs, double rhs) in ae_c_div_d() argument
4955 result.x = lhs.x/rhs; in ae_c_div_d()
4956 result.y = lhs.y/rhs; in ae_c_div_d()
4960 ae_complex ae_c_d_div(double lhs, ae_complex rhs) in ae_c_d_div() argument
4965 if( fabs(rhs.y)<fabs(rhs.x) ) in ae_c_d_div()
4967 e = rhs.y/rhs.x; in ae_c_d_div()
4968 f = rhs.x+rhs.y*e; in ae_c_d_div()
4974 e = rhs.x/rhs.y; in ae_c_d_div()
4975 f = rhs.y+rhs.x*e; in ae_c_d_div()
6075 bool alglib::operator==(const alglib::complex& lhs, const alglib::complex& rhs) in operator ==() argument
6078 volatile double x2 = rhs.x; in operator ==()
6080 volatile double y2 = rhs.y; in operator ==()
6084 bool alglib::operator!=(const alglib::complex& lhs, const alglib::complex& rhs) in operator !=() argument
6085 { return !(lhs==rhs); } in operator !=()
6093 const alglib::complex alglib::operator+(const alglib::complex& lhs, const alglib::complex& rhs) in operator +() argument
6094 { alglib::complex r = lhs; r += rhs; return r; } in operator +()
6096 const alglib::complex alglib::operator+(const alglib::complex& lhs, const double& rhs) in operator +() argument
6097 { alglib::complex r = lhs; r += rhs; return r; } in operator +()
6099 const alglib::complex alglib::operator+(const double& lhs, const alglib::complex& rhs) in operator +() argument
6100 { alglib::complex r = rhs; r += lhs; return r; } in operator +()
6102 const alglib::complex alglib::operator-(const alglib::complex& lhs, const alglib::complex& rhs) in operator -() argument
6103 { alglib::complex r = lhs; r -= rhs; return r; } in operator -()
6105 const alglib::complex alglib::operator-(const alglib::complex& lhs, const double& rhs) in operator -() argument
6106 { alglib::complex r = lhs; r -= rhs; return r; } in operator -()
6108 const alglib::complex alglib::operator-(const double& lhs, const alglib::complex& rhs) in operator -() argument
6109 { alglib::complex r = lhs; r -= rhs; return r; } in operator -()
6111 const alglib::complex alglib::operator*(const alglib::complex& lhs, const alglib::complex& rhs) in operator *() argument
6112 { return alglib::complex(lhs.x*rhs.x - lhs.y*rhs.y, lhs.x*rhs.y + lhs.y*rhs.x); } in operator *()
6114 const alglib::complex alglib::operator*(const alglib::complex& lhs, const double& rhs) in operator *() argument
6115 { return alglib::complex(lhs.x*rhs, lhs.y*rhs); } in operator *()
6117 const alglib::complex alglib::operator*(const double& lhs, const alglib::complex& rhs) in operator *() argument
6118 { return alglib::complex(lhs*rhs.x, lhs*rhs.y); } in operator *()
6120 const alglib::complex alglib::operator/(const alglib::complex& lhs, const alglib::complex& rhs) in operator /() argument
6125 if( fabs(rhs.y)<fabs(rhs.x) ) in operator /()
6127 e = rhs.y/rhs.x; in operator /()
6128 f = rhs.x+rhs.y*e; in operator /()
6134 e = rhs.x/rhs.y; in operator /()
6135 f = rhs.y+rhs.x*e; in operator /()
6142 const alglib::complex alglib::operator/(const double& lhs, const alglib::complex& rhs) in operator /() argument
6147 if( fabs(rhs.y)<fabs(rhs.x) ) in operator /()
6149 e = rhs.y/rhs.x; in operator /()
6150 f = rhs.x+rhs.y*e; in operator /()
6156 e = rhs.x/rhs.y; in operator /()
6157 f = rhs.y+rhs.x*e; in operator /()
6164 const alglib::complex alglib::operator/(const alglib::complex& lhs, const double& rhs) in operator /() argument
6165 { return alglib::complex(lhs.x/rhs, lhs.y/rhs); } in operator /()
7150 alglib::ae_vector_wrapper::ae_vector_wrapper(const ae_vector_wrapper &rhs, alglib_impl::ae_datatype… in ae_vector_wrapper() argument
7168 …alglib_impl::ae_assert(rhs.ptr!=NULL, "ALGLIB: ae_vector_wrapper source is not initialized", &_sta… in ae_vector_wrapper()
7169 …alglib_impl::ae_assert(rhs.ptr->datatype==datatype, "ALGLIB: ae_vector_wrapper datatype check fail… in ae_vector_wrapper()
7173 ae_vector_init_copy(ptr, rhs.ptr, &_state, ae_false); in ae_vector_wrapper()
7221 … alglib::ae_vector_wrapper& alglib::ae_vector_wrapper::assign(const alglib::ae_vector_wrapper &rhs) in assign() argument
7225 if( this==&rhs ) in assign()
7239 ae_assert(rhs.ptr!=NULL, "ALGLIB: incorrect assignment (uninitialized source)", &_state); in assign()
7240 …ae_assert(rhs.ptr->datatype==ptr->datatype, "ALGLIB: incorrect assignment to array (types do not m… in assign()
7242 …ae_assert(rhs.ptr->cnt==ptr->cnt, "ALGLIB: incorrect assignment to proxy array (sizes do not match… in assign()
7243 if( rhs.ptr->cnt!=ptr->cnt ) in assign()
7244 ae_vector_set_length(ptr, rhs.ptr->cnt, &_state); in assign()
7245 memcpy(ptr->ptr.p_ptr, rhs.ptr->ptr.p_ptr, ptr->cnt*alglib_impl::ae_sizeof(ptr->datatype)); in assign()
7313 …ean_1d_array::boolean_1d_array(const alglib::boolean_1d_array &rhs):ae_vector_wrapper(rhs,alglib_i… in boolean_1d_array() argument
7321 … alglib::boolean_1d_array& alglib::boolean_1d_array::operator=(const alglib::boolean_1d_array &rhs) in operator =() argument
7323 return static_cast<const alglib::boolean_1d_array&>(assign(rhs)); in operator =()
7395 …ger_1d_array::integer_1d_array(const alglib::integer_1d_array &rhs):ae_vector_wrapper(rhs,alglib_i… in integer_1d_array() argument
7399 … alglib::integer_1d_array& alglib::integer_1d_array::operator=(const alglib::integer_1d_array &rhs) in operator =() argument
7401 return static_cast<const alglib::integer_1d_array&>(assign(rhs)); in operator =()
7473 alglib::real_1d_array::real_1d_array(const alglib::real_1d_array &rhs):ae_vector_wrapper(rhs,alglib… in real_1d_array() argument
7477 const alglib::real_1d_array& alglib::real_1d_array::operator=(const alglib::real_1d_array &rhs) in operator =() argument
7479 return static_cast<const alglib::real_1d_array&>(assign(rhs)); in operator =()
7581 …lex_1d_array::complex_1d_array(const alglib::complex_1d_array &rhs):ae_vector_wrapper(rhs,alglib_i… in complex_1d_array() argument
7585 … alglib::complex_1d_array& alglib::complex_1d_array::operator=(const alglib::complex_1d_array &rhs) in operator =() argument
7587 return static_cast<const alglib::complex_1d_array&>(assign(rhs)); in operator =()
7698 alglib::ae_matrix_wrapper::ae_matrix_wrapper(const ae_matrix_wrapper &rhs, alglib_impl::ae_datatype… in ae_matrix_wrapper() argument
7718 …alglib_impl::ae_assert(rhs.ptr->datatype==datatype, "ALGLIB: ae_matrix_wrapper datatype check fail… in ae_matrix_wrapper()
7719 if( rhs.ptr!=NULL ) in ae_matrix_wrapper()
7723 ae_matrix_init_copy(ptr, rhs.ptr, &_state, ae_false); in ae_matrix_wrapper()
7844 … alglib::ae_matrix_wrapper& alglib::ae_matrix_wrapper::assign(const alglib::ae_matrix_wrapper &rhs) in assign() argument
7849 if( this==&rhs ) in assign()
7863 … ae_assert(rhs.ptr!=NULL, "ALGLIB: incorrect assignment to array (uninitialized source)", &_state); in assign()
7864 …ae_assert(rhs.ptr->datatype==ptr->datatype, "ALGLIB: incorrect assignment to array (types dont mat… in assign()
7867 …ae_assert(rhs.ptr->rows==ptr->rows, "ALGLIB: incorrect assignment to proxy array (sizes dont match… in assign()
7868 …ae_assert(rhs.ptr->cols==ptr->cols, "ALGLIB: incorrect assignment to proxy array (sizes dont match… in assign()
7870 if( (rhs.ptr->rows!=ptr->rows) || (rhs.ptr->cols!=ptr->cols) ) in assign()
7871 ae_matrix_set_length(ptr, rhs.ptr->rows, rhs.ptr->cols, &_state); in assign()
7873 …memcpy(ptr->ptr.pp_void[i], rhs.ptr->ptr.pp_void[i], ptr->cols*alglib_impl::ae_sizeof(ptr->datatyp… in assign()
7892 …ean_2d_array::boolean_2d_array(const alglib::boolean_2d_array &rhs):ae_matrix_wrapper(rhs,alglib_i… in boolean_2d_array() argument
7904 … alglib::boolean_2d_array& alglib::boolean_2d_array::operator=(const alglib::boolean_2d_array &rhs) in operator =() argument
7906 return static_cast<const boolean_2d_array&>(assign(rhs)); in operator =()
7971 …ger_2d_array::integer_2d_array(const alglib::integer_2d_array &rhs):ae_matrix_wrapper(rhs,alglib_i… in integer_2d_array() argument
7983 … alglib::integer_2d_array& alglib::integer_2d_array::operator=(const alglib::integer_2d_array &rhs) in operator =() argument
7985 return static_cast<const integer_2d_array&>(assign(rhs)); in operator =()
8050 alglib::real_2d_array::real_2d_array(const alglib::real_2d_array &rhs):ae_matrix_wrapper(rhs,alglib… in real_2d_array() argument
8062 const alglib::real_2d_array& alglib::real_2d_array::operator=(const alglib::real_2d_array &rhs) in operator =() argument
8064 return static_cast<const real_2d_array&>(assign(rhs)); in operator =()
8160 …lex_2d_array::complex_2d_array(const alglib::complex_2d_array &rhs):ae_matrix_wrapper(rhs,alglib_i… in complex_2d_array() argument
8172 … alglib::complex_2d_array& alglib::complex_2d_array::operator=(const alglib::complex_2d_array &rhs) in operator =() argument
8174 return static_cast<const complex_2d_array&>(assign(rhs)); in operator =()