Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
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
Model registry
Operate
Environments
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
Show more breadcrumbs
Larry Price
gmsh
Commits
72fdcae3
Commit
72fdcae3
authored
12 years ago
by
Thomas Toulorge
Browse files
Options
Downloads
Patches
Plain Diff
Fixed "multWithATranspose" in class fullMatrix for consistency with BLAS
parent
8cd443bb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Numeric/fullMatrix.cpp
+1
-2
1 addition, 2 deletions
Numeric/fullMatrix.cpp
Numeric/fullMatrix.h
+3
-3
3 additions, 3 deletions
Numeric/fullMatrix.h
with
4 additions
and
5 deletions
Numeric/fullMatrix.cpp
+
1
−
2
View file @
72fdcae3
...
...
@@ -168,10 +168,9 @@ void fullMatrix<double>::multOnBlock(const fullMatrix<double> &b, const int ncol
}
template
<
>
void
fullMatrix
<
double
>::
multWithATranspose
(
const
fullVector
<
double
>
&
x
,
const
int
alpha
_
,
const
int
beta
_
,
fullVector
<
double
>
&
y
)
const
void
fullMatrix
<
double
>::
multWithATranspose
(
const
fullVector
<
double
>
&
x
,
double
alpha
,
double
beta
,
fullVector
<
double
>
&
y
)
const
{
int
M
=
_r
,
N
=
_c
,
LDA
=
_r
,
INCX
=
1
,
INCY
=
1
;
double
alpha
=
alpha_
,
beta
=
beta_
;
F77NAME
(
dgemv
)(
"T"
,
&
M
,
&
N
,
&
alpha
,
_data
,
&
LDA
,
x
.
_data
,
&
INCX
,
&
beta
,
y
.
_data
,
&
INCY
);
...
...
This diff is collapsed.
Click to expand it.
Numeric/fullMatrix.h
+
3
−
3
View file @
72fdcae3
...
...
@@ -551,13 +551,13 @@ class fullMatrix
#endif
;
void
multWithATranspose
(
const
fullVector
<
scalar
>
&
x
,
const
int
alpha
_
,
const
int
beta
_
,
fullVector
<
scalar
>
&
y
)
const
void
multWithATranspose
(
const
fullVector
<
scalar
>
&
x
,
scalar
alpha
,
scalar
beta
,
fullVector
<
scalar
>
&
y
)
const
#if !defined(HAVE_BLAS)
{
y
.
scale
(
beta
_
);
y
.
scale
(
beta
);
for
(
int
j
=
0
;
j
<
_c
;
j
++
)
for
(
int
i
=
0
;
i
<
_r
;
i
++
)
y
.
_data
[
j
]
+=
(
*
this
)(
i
,
j
)
*
x
(
i
);
y
.
_data
[
j
]
+=
alpha
*
(
*
this
)(
i
,
j
)
*
x
(
i
);
}
#endif
;
...
...
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