Skip to content

0xd34d10cc/modint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modint

Modular arithmetic integer type

Example

use typenum::U17;

type M17 = Unsigned<u8, U17>;

assert_eq!(M17::from(16) + 14.into(), 13.into());
assert_eq!(M17::from(11) - 15.into(), 13.into());
assert_eq!(M17::from(11) * 15.into(), 12.into());
assert_eq!(M17::from(13) / 4 .into(),  3.into());

About

Modular arithmetic integer type

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages