Skip to contents

Computes the inner product between `x` and `y` with inverse-variance weighting.

Usage

weighted_inner(x, y, wt)

Arguments

x

A numeric or complex vector.

y

A numeric or complex vector.

wt

A numeric weight vector (same length as `x`, `y`).

Value

Complex scalar. Weighted inner product.