Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backofen, Rainer
amdis
Commits
d91a6d59
Commit
d91a6d59
authored
Apr 02, 2009
by
Thomas Witkowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Small test commit, no changes
parent
70c8d9cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
AMDiS/src/StlVector.cc
AMDiS/src/StlVector.cc
+5
-5
No files found.
AMDiS/src/StlVector.cc
View file @
d91a6d59
...
...
@@ -10,13 +10,13 @@ namespace AMDiS {
v
+=
(
*
vec
)[
i
]
*
(
*
vec
)[
i
];
}
return
sqrt
(
v
);
}
;
}
void
setValue
(
std
::
vector
<
double
>&
x
,
double
value
)
{
for
(
int
i
=
0
;
i
<
static_cast
<
int
>
(
x
.
size
());
i
++
)
{
x
[
i
]
=
value
;
}
}
;
}
const
std
::
vector
<
double
>&
operator
*=
(
std
::
vector
<
double
>&
x
,
double
scal
)
{
for
(
int
i
=
0
;
i
<
static_cast
<
int
>
(
x
.
size
());
i
++
)
{
...
...
@@ -24,7 +24,7 @@ namespace AMDiS {
}
return
x
;
}
;
}
const
std
::
vector
<
double
>&
operator
+=
(
std
::
vector
<
double
>&
x1
,
const
std
::
vector
<
double
>&
x2
)
{
...
...
@@ -33,7 +33,7 @@ namespace AMDiS {
}
return
x1
;
}
;
}
double
operator
*
(
std
::
vector
<
double
>&
x1
,
std
::
vector
<
double
>&
x2
)
{
double
result
=
0.0
;
...
...
@@ -43,7 +43,7 @@ namespace AMDiS {
}
return
result
;
}
;
}
void
axpy
(
double
alpha
,
const
std
::
vector
<
double
>&
x
,
std
::
vector
<
double
>&
y
)
{
for
(
int
i
=
0
;
i
<
static_cast
<
int
>
(
y
.
size
());
i
++
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment