Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
faust
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
faust group
faust
Commits
f7b45660
Commit
f7b45660
authored
5 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Add MatDense::adjoint().
parent
c49a46ec
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
src/faust_linear_operator/CPU/faust_MatDense.h
+3
-0
3 additions, 0 deletions
src/faust_linear_operator/CPU/faust_MatDense.h
src/faust_linear_operator/CPU/faust_MatDense.hpp
+17
-1
17 additions, 1 deletion
src/faust_linear_operator/CPU/faust_MatDense.hpp
with
20 additions
and
1 deletion
src/faust_linear_operator/CPU/faust_MatDense.h
+
3
−
0
View file @
f7b45660
...
...
@@ -366,6 +366,9 @@ void spgemm(const Faust::MatSparse<FPP,Cpu> & A,const Faust::MatDense<FPP,Cpu> &
void
conjugate
();
void
conjugate
(
const
bool
eval
);
//! \brief Replaces the matrix by its transconjugate.
void
adjoint
();
//! \brief Replace this by (this) * A
void
multiplyRight
(
MatDense
<
FPP
,
Cpu
>
const
&
A
);
...
...
This diff is collapsed.
Click to expand it.
src/faust_linear_operator/CPU/faust_MatDense.hpp
+
17
−
1
View file @
f7b45660
...
...
@@ -327,7 +327,7 @@ void Faust::MatDense<FPP,Cpu>::transpose()
return
;
}
mat
=
mat
.
transpose
().
eval
();
mat
=
mat
.
transpose
().
eval
();
// equiv. to transposeInPlace() https://eigen.tuxfamily.org/dox/classEigen_1_1DenseBase.html#ac501bd942994af7a95d95bee7a16ad2a
faust_unsigned_int
dim1_copy
=
this
->
dim1
;
this
->
dim1
=
this
->
dim2
;
this
->
dim2
=
dim1_copy
;
...
...
@@ -384,6 +384,22 @@ void Faust::MatDense<FPP,Cpu>::conjugate(const bool eval)
}
template
<
typename
FPP
>
void
Faust
::
MatDense
<
FPP
,
Cpu
>::
adjoint
()
{
if
(
isZeros
)
{
this
->
resize
(
this
->
dim2
,
this
->
dim1
);
return
;
}
mat
.
adjointInPlace
();
faust_unsigned_int
dim1_copy
=
this
->
dim1
;
this
->
dim1
=
this
->
dim2
;
this
->
dim2
=
dim1_copy
;
}
template
<
typename
FPP
>
void
Faust
::
MatDense
<
FPP
,
Cpu
>::
real
()
{
...
...
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