Skip to content

Releases: chen-qingyu/pyinrs

v1.8.1

05 Oct 11:11
Compare
Choose a tag to compare

Feature

  • Add method Fraction::gcd/lcm().

Fixed

  • Fix all gcd/lcm(): return non-negative number.

Misc

  • Refine docs.
  • Refine code.
  • More tests.

v1.8.0

17 Aug 14:32
Compare
Choose a tag to compare

Misc

  • Change license to MIT.
  • Update tests.
  • Update docs.
  • Update readme.
  • Refine code.

v1.7.0

23 May 15:28
Compare
Choose a tag to compare

Feature

  • Add struct Complex.
  • Add method Fraction::numerator()/denominator().

Misc

  • More compact code.
  • More clear comments.

v1.6.0

17 May 02:06
Compare
Choose a tag to compare

Feature

  • Add static method Int::random().
  • Add static method Int::log().
  • Add method Int::is_prime().
  • Add method Int::next_prime().

Performance

  • Optimized basic operations and many functions for Int.

Fixed

  • Fix Int::pow(): (-1)^(-1) => -1

Change

  • Make Int::sqrt(), Int::pow() static.
  • Split pow(base, exp, module) -> pow(base, exp) & pow_mod(base, exp, module).

Misc

  • More tests.
  • More docs.

v1.5.0

13 May 03:00
Compare
Choose a tag to compare
  1. Refactored the code.
  2. Impl Extend trait for containers.
  3. Adjust Dict::keys()/values() return iterators instead Set.
  4. The performance of Int has improved.
  5. Add Str::as_str().

v1.4.1

03 May 21:40
Compare
Choose a tag to compare
  1. Perf: optimized Set::min/max.
  2. Refactor: use utility::print() to reduce code.
  3. Test: arrange tests with pyincpp: more and regular.

v1.4.0

02 May 14:53
Compare
Choose a tag to compare

Manually "cherry-pick"ed with pyincpp:

  1. update readme
  2. add test_demo
  3. fix Set::partial_cmp: neither a subset nor a superset return None
  4. add comments for pub struct
  5. adjust Deque::len: usize -> i32 for negative index compatibility
  6. add check for Deque::push
  7. add Index/IndexMut for Deque
  8. refine code
  9. add Dict::find
  10. adjust Dict::remove: Option -> bool
  11. remove partial_cmp for Dict
  12. let Int::new() has an empty Vec and optimize Int
  13. adjust List::count: i32 -> usize
  14. add Set::find
  15. add Set::min/max
  16. rename Set::insert -> Set::add
  17. add Set::pop

v1.3.0

16 Apr 12:36
Compare
Choose a tag to compare
  1. Decoupling modules and eliminating redundant code.
  2. Improve performance.
  3. Add to_integer() for Str.
  4. Add to_integer<T>() for Int.
  5. Refine doc-comments.

v1.2.0

08 Apr 03:31
Compare
Choose a tag to compare
  1. Add with_capacity() and reserve() for Deque.
  2. Modify insert() and remove() return to indicate state for Set.
  3. Optimize performance.

v1.1.0

22 Mar 08:50
Compare
Choose a tag to compare
  1. Add char_at(), +(), *() for Str.
  2. Refine readme.