Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docs.it4i.cz
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Ciz
docs.it4i.cz
Commits
5c07230e
Commit
5c07230e
authored
8 years ago
by
David Hrbáč
Browse files
Options
Downloads
Plain Diff
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
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs.it4i/salomon/software/numerical-languages/r.md
+5
-5
5 additions, 5 deletions
docs.it4i/salomon/software/numerical-languages/r.md
with
5 additions
and
5 deletions
docs.it4i/salomon/software/numerical-languages/r.md
+
5
−
5
View file @
5c07230e
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment