https://github.com/gwastro/pycbc
Tip revision: 2f773a01d4d91ec521b458914e8e711a5e3e2e1f authored by Ian Harry on 06 January 2022, 15:40:15 UTC
Update setup.py (#3908)
Update setup.py (#3908)
Tip revision: 2f773a0
matchedfilter_numpy.py
# Copyright (C) 2017 Ian Harry
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 3 of the License, or (at your
# option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
# Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import numpy
def correlate(x, y, z):
z.data[:] = numpy.conjugate(x.data)[:]
z *= y