Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4cdc56a0 authored by hhakim's avatar hhakim
Browse files

Add pyfaust.Faust.conjugate() alias of conj() as it exists in numpy.

parent 80b50a55
Branches
Tags
No related merge requests found
...@@ -267,6 +267,28 @@ class Faust: ...@@ -267,6 +267,28 @@ class Faust:
F_conj = Faust(core_obj=F.m_faust.conj()) F_conj = Faust(core_obj=F.m_faust.conj())
return F_conj return F_conj
def conjugate(F):
"""
Returns the complex conjugate of F.
Args:
F: the Faust object.
Returns:
a Faust object Fc implementing the conjugate of F.todense() such
that:
<code>Fc.todense() == F.todense().conjugate()</code>
Examples:
>>> from pyfaust import FaustFactory
>>> F = FaustFactory.rand(5, 50, field='complex')
>>> Fc = F.conjugate()
<b/> See also Faust.transpose, Faust.getH, Faust.H
"""
return F.conj()
def getH(F): def getH(F):
""" """
Returns the conjugate transpose of F. Returns the conjugate transpose of F.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment