some doc, deploy tool fix

This commit is contained in:
2023-04-04 13:05:09 +03:00
parent 38bcb6c482
commit 4af5886649
3 changed files with 50 additions and 21 deletions

View File

@@ -55,12 +55,23 @@ inline complexd sign(const complexd & x) {
return complexd(sign(x.real()), sign(x.imag()));
}
//! \~\brief
//! \~english Round, floor, and ceil functions for complex numbers.
//! \~russian Округление, округление вниз и округление вверх комплексных чисел.
inline complexd round(const complexd & c) {
return complexd(piRound<double>(c.real()), piRound<double>(c.imag()));
}
//! \~\brief
//! \~english Floor a complex number.
//! \~russian Округление комплексного числа вниз.
inline complexd floor(const complexd & c) {
return complexd(floor(c.real()), floor(c.imag()));
}
//! \~\brief
//! \~english Ceil a complex number.
//! \~russian Округление комплексного числа вверх.
inline complexd ceil(const complexd & c) {
return complexd(ceil(c.real()), ceil(c.imag()));
}