Releases: chen-qingyu/pyinrs
Releases · chen-qingyu/pyinrs
v1.8.1
v1.8.0
Misc
- Change license to MIT.
- Update tests.
- Update docs.
- Update readme.
- Refine code.
v1.7.0
Feature
- Add struct
Complex
. - Add method
Fraction::numerator()/denominator()
.
Misc
- More compact code.
- More clear comments.
v1.6.0
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
- Refactored the code.
- Impl
Extend
trait for containers. - Adjust
Dict::keys()/values()
return iterators insteadSet
. - The performance of
Int
has improved. - Add
Str::as_str()
.
v1.4.1
- Perf: optimized
Set::min/max
. - Refactor: use utility::print() to reduce code.
- Test: arrange tests with pyincpp: more and regular.
v1.4.0
Manually "cherry-pick"ed with pyincpp:
- update readme
- add test_demo
- fix
Set::partial_cmp
: neither a subset nor a superset returnNone
- add comments for pub struct
- adjust
Deque::len
: usize -> i32 for negative index compatibility - add check for
Deque::push
- add Index/IndexMut for
Deque
- refine code
- add
Dict::find
- adjust
Dict::remove
: Option -> bool - remove
partial_cmp
for Dict - let
Int::new()
has an empty Vec and optimizeInt
- adjust
List::count
: i32 -> usize - add
Set::find
- add
Set::min/max
- rename
Set::insert
->Set::add
- add
Set::pop
v1.3.0
- Decoupling modules and eliminating redundant code.
- Improve performance.
- Add
to_integer()
forStr
. - Add
to_integer<T>()
forInt
. - Refine doc-comments.
v1.2.0
- Add
with_capacity()
andreserve()
forDeque
. - Modify
insert()
andremove()
return to indicate state forSet
. - Optimize performance.
v1.1.0
- Add
char_at()
,+()
,*()
forStr
. - Refine readme.