PositionHAWP¶
About the PositionHAWP
class¶
The WaveBlocks Project
@author: R. Bourquin @copyright: Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016 R. Bourquin @license: Modified BSD License
Inheritance diagram¶
![Inheritance diagram of PositionHAWP](../_images/inheritance-3464c5689297efbdb66b97ca8fe407c1cc45cec3.png)
Class documentation¶
-
class
WaveBlocksND.
PositionHAWP
[source]¶ This class implements the computation of the action of the position operator
applied to a Hagedorn wavepacket
.
-
apply_position
(wavepacket, *, component=None, as_packet=True)¶ Compute the effect of the position operator
on the basis functions
of a component
of the Hagedorn wavepacket
.
Parameters: - wavepacket (A
HagedornWavepacketBase
subclass instance.) – The wavepacketcontaining
.
- component (Integer or
None
.) – The indexof the component
.
- as_packet (Boolean, default is
True
.) – Whether to return a full packet.
Returns: A list of length
or a single pair of extended basis shapes
and new coefficients
. If requested, copies of the original wavepacket are returned with these new values set. There are
packets, one for each space variable component
of the position operator.
- wavepacket (A
-
apply_position_component
(wavepacket, component)[source]¶ Compute the effect of the position operator
on the basis functions
of a component
of the Hagedorn wavepacket
.
Parameters: - wavepacket (A
HagedornWavepacketBase
subclass instance.) – The wavepacketcontaining
.
- component (Integer.) – The index
of the component
.
Returns: Extended basis shape
and new coefficients
for component
. The coefficients are stored column-wise with one column per dimension
. The
array is of shape
.
- wavepacket (A
-