residue number system in MATLAB
6 次查看(过去 30 天)
显示 更早的评论
Hi,
I wanted to ask if it is possible to use rns in MATLAB?
If it is possible to use the residue number system in MATLAB, please guide me.
0 个评论
采纳的回答
Walter Roberson
2022-12-2
MATLAB can be used to program any deterministic calculation that can fit into your computer memory. MATLAB is Turing-complete: you could use it to write a Turing Machine to perform any deterministic calculation that you can fit. It might take a long time, but it can be done.
Residue Number System is deterministic, so YES you can program it in MATLAB.
MATLAB does not supply any functions for rns so you will need to write them yourself.
12 个评论
Walter Roberson
2022-12-4
All three of the operations listed,
are implimented in RNS by doing that same element-by-element operation on the RNS vectors (mod the appropriate prime), so basically that is the flow chart.

Note: at the moment I do not know any efficient method to convert an RNS vector to decimal.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!