Skip to content

Commit

Permalink
Update complexity documentation now that Karatsuba is used
Browse files Browse the repository at this point in the history
  • Loading branch information
OTheDev committed Mar 3, 2024
1 parent 3e055df commit 987361d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ bi_t bi_t::operator--(int) {
*/
///@{

/// @complexity \f$ O(m \cdot n) \f$
/// @complexity \f$ O(n^{\log_{2}(3)}) \approx O(n^{1.58}) \f$
bi_t bi_t::operator*(const bi_t& other) const {
bi_t ret;
h_::mul(ret, *this, other);
Expand All @@ -326,7 +326,7 @@ bi_t bi_t::operator%(const bi_t& other) const {
return rem;
}

/// @complexity \f$ O(m \cdot n) \f$
/// @complexity \f$ O(n^{\log_{2}(3)}) \approx O(n^{1.58}) \f$
bi_t& bi_t::operator*=(const bi_t& other) {
h_::mul(*this, *this, other);
return *this;
Expand Down

0 comments on commit 987361d

Please sign in to comment.