How To Install dSFMT on CentOS 7

In this tutorial we learn how to install dSFMT on CentOS 7. dSFMT is Double precision SIMD-oriented Fast Mersenne Twister

Introduction

In this tutorial we learn how to install dSFMT on CentOS 7.

What is dSFMT

The purpose of dSFMT is to speed up the generation by avoiding the expensive conversion of integer to double (floating point). dSFMT directly generates double precision floating point pseudo-random numbers which have the IEEE Standard for Binary Floating-Point Arithmetic (ANSI/IEEE Std 754-1985) format. dSFMT is only available on the CPUs which use IEEE 754 format double precision floating point numbers. dSFMT doesn’t support integer outputs. dSFMT supports the output of double precision floating point pseudo-random numbers which distribute in the range of [1, 2), [0, 1), (0, 1] and (0, 1). And it also supports the various periods form 2607-1 to 2132049-1.

We can use yum or dnf to install dSFMT on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install dSFMT.

Install dSFMT on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install dSFMT using yum by running the following command:

sudo yum -y install dSFMT

Install dSFMT on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install dSFMT using dnf by running the following command:

sudo dnf -y install dSFMT

How To Uninstall dSFMT on CentOS 7

To uninstall only the dSFMT package we can use the following command:

sudo dnf remove dSFMT

References

Summary

In this tutorial we learn how to install dSFMT on CentOS 7 using yum and dnf.