.DESLib.RandomLib.CMRG.Src

Information

Internal data and functions

Contents

NameDescription
 SeedRNG seed data type
 MultModMCompute (a*s + c) % m. m must be < 2^35. Works also for s, c < 0
 MatVecModMMatVecModM returns v = A*s % m. Assumes that -m < s[i] < m. Works even if v = s.
 MatMatModMMatMAtModM Returns C = A*B % m. Work even if A = C or B = C or A = B = C.
 MatTwoPowModMMatTwoPowModM compute matrix B = (A^(2^e) % m); works even if A = B
 MatPowModMMatPowModM compute matrix B = A^n % m ; works even if A = B
 U01Uniform random number generation function
 U01dUniform random number generation function, with increased precission
 CheckSeedChecks correctness of a seed.
 SaveSeedsaves seed to file CMRGSeed.txt
 ReadSeedreads the current seed from file CMRGSeed.txt. If the file does not exists, saves the default value {12345,12345,12345,12345,12345,12345}

Generated at 2024-11-21T19:25:40Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos