AmplitudeVector

class adcc.AmplitudeVector(*tensors)

Bases: object

Attributes Summary

blocks

Methods Summary

add_linear_combination(scalars, others) Return an AmplitudeVector of the same shape and symmetry with all elements set to zero
copy() Return a copy of the AmplitudeVector
dot(other) Return the dot product with another AmplitudeVector or the dot products with a list of AmplitudeVectors.
empty_like() Return an empty AmplitudeVector of the same shape and symmetry
nosym_like() Return an empty AmplitudeVector of the same shape and symmetry
ones_like() Return an empty AmplitudeVector of the same shape and symmetry
to_cpp() Return the C++ equivalent of this object.
zeros_like() Return an AmplitudeVector of the same shape and symmetry with all elements set to zero

Attributes Documentation

blocks

Methods Documentation

add_linear_combination(scalars, others)

Return an AmplitudeVector of the same shape and symmetry with all elements set to zero

copy()

Return a copy of the AmplitudeVector

dot(other)

Return the dot product with another AmplitudeVector or the dot products with a list of AmplitudeVectors. In the latter case a np.ndarray is returned.

empty_like()

Return an empty AmplitudeVector of the same shape and symmetry

nosym_like()

Return an empty AmplitudeVector of the same shape and symmetry

ones_like()

Return an empty AmplitudeVector of the same shape and symmetry

to_cpp()

Return the C++ equivalent of this object. This is needed at the interface to the C++ code.

zeros_like()

Return an AmplitudeVector of the same shape and symmetry with all elements set to zero