Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gmresls
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
A compter du 1er avril, attention à vos pipelines :
Nouvelles limitations de Docker Hub
Show more breadcrumbs
MathsCell
gmresls
Commits
f34db9c7
Commit
f34db9c7
authored
5 months ago
by
Sokol Serguei
Browse files
Options
Downloads
Patches
Plain Diff
added example to readme
parent
6a9cdc2c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+7
-0
7 additions, 0 deletions
README.md
with
7 additions
and
0 deletions
README.md
+
7
−
0
View file @
f34db9c7
...
...
@@ -22,4 +22,11 @@ This is a basic example which shows you how to solve a common problem:
```
r
library
(
gmresls
)
# prepare a 4x3 toy problem Ax=b
A
=
rbind
(
diag
(
1
:
3
)
+
matrix
(
1
,
3
,
3
),
rep
(
1
,
3
))
xsol
=
1
:
3
b
=
A
%*%
xsol
f_Ax
=
function
(
x
,
...
)
list
(
...
)
$
A
%*%
x
f_Br
=
function
(
r
,
...
)
t
(
list
(
...
)
$
A
)
%*%
r
x
=
gmresls
(
f_Ax
,
f_Br
,
b
,
A
=
A
)
```
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