residue number system in MATLAB

2 vues (au cours des 30 derniers jours)
Hana
Hana le 2 Déc 2022
Commenté : Hana le 4 Déc 2022
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.

Réponse acceptée

Walter Roberson
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
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.
Hana
Hana le 4 Déc 2022
Thank you for your answer.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by