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

Method mv_mult

python/geom.py:1458–1459  ·  view source on GitHub ↗
(self, v)

Source from the content-addressed store, hash-verified

1456 return Matrix(c1, c2, c3)
1457
1458 def mv_mult(self, v):
1459 return Vector3(*[self.row(i).dot(Vector3(*v)) for i in range(3)])
1460
1461 def scale(self, s):
1462 return Matrix(self.c1.scale(s), self.c2.scale(s), self.c3.scale(s))

Callers 1

__mul__Method · 0.95

Calls 3

rowMethod · 0.95
Vector3Class · 0.85
dotMethod · 0.80

Tested by

no test coverage detected