residue number system in MATLAB
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Walter Roberson
le 2 Déc 2022
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 commentaires
Walter Roberson
le 4 Déc 2022
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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!