Skip to content
Snippets Groups Projects
Commit 5c07230e authored by David Hrbáč's avatar David Hrbáč
Browse files

Merge branch '50-ukazky-z-konzoly-nemaji-byt-bash' into 'master'

R

Closes #50

See merge request !118
parents 91acd06b a9e03b7a
No related branches found
No related tags found
No related merge requests found
...@@ -85,7 +85,7 @@ $ R ...@@ -85,7 +85,7 @@ $ R
More information and examples may be obtained directly by reading the documentation available in R More information and examples may be obtained directly by reading the documentation available in R
```console ```r
> ?parallel > ?parallel
> library(help = "parallel") > library(help = "parallel")
> vignette("parallel") > vignette("parallel")
...@@ -102,7 +102,7 @@ The forking is the most simple to use. Forking family of functions provide paral ...@@ -102,7 +102,7 @@ The forking is the most simple to use. Forking family of functions provide paral
Forking example: Forking example:
```cpp ```r
library(parallel) library(parallel)
#integrand function #integrand function
...@@ -165,7 +165,7 @@ Static Rmpi programs are executed via mpiexec, as any other MPI programs. Number ...@@ -165,7 +165,7 @@ Static Rmpi programs are executed via mpiexec, as any other MPI programs. Number
Static Rmpi example: Static Rmpi example:
```cpp ```r
library(Rmpi) library(Rmpi)
#integrand function #integrand function
...@@ -221,7 +221,7 @@ Dynamic Rmpi programs are executed by calling the R directly. OpenMPI module mus ...@@ -221,7 +221,7 @@ Dynamic Rmpi programs are executed by calling the R directly. OpenMPI module mus
Dynamic Rmpi example: Dynamic Rmpi example:
```cpp ```r
#integrand function #integrand function
f <- function(i,h) { f <- function(i,h) {
x <- h*(i-0.5) x <- h*(i-0.5)
...@@ -299,7 +299,7 @@ Execution is identical to other dynamic Rmpi programs. ...@@ -299,7 +299,7 @@ Execution is identical to other dynamic Rmpi programs.
mpi.apply Rmpi example: mpi.apply Rmpi example:
```cpp ```r
#integrand function #integrand function
f <- function(i,h) { f <- function(i,h) {
x <- h*(i-0.5) x <- h*(i-0.5)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment