MCPcopy Create free account
hub / github.com/NanoComp/meep / cdot

Method cdot

python/geom.py:181–183  ·  view source on GitHub ↗

Returns the conjugated dot product: `conj(self)` dot `v`.

(self, v)

Source from the content-addressed store, hash-verified

179 return self.x * v.x + self.y * v.y + self.z * v.z
180
181 def cdot(self, v):
182 """Returns the conjugated dot product: `conj(self)` dot `v`."""
183 return self.conj().dot(v)
184
185 def cross(self, v):
186 """

Callers 2

normMethod · 0.95
test_cdotMethod · 0.95

Calls 2

conjMethod · 0.95
dotMethod · 0.80

Tested by 1

test_cdotMethod · 0.76