changeset 6:be09c8fc58b8

length assertion on vectors
author Jeff Hammel <k0scist@gmail.com>
date Wed, 30 Aug 2017 20:44:48 -0700
parents 382ab19fb052
children bb8b6b06ca83
files tvii/dot.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tvii/dot.py	Wed Aug 30 17:32:06 2017 -0700
+++ b/tvii/dot.py	Wed Aug 30 20:44:48 2017 -0700
@@ -4,5 +4,5 @@
 
 def dot(w, x):
     """inner dot product"""
-    
+    assert len(w) == len(x)
     raise NotImplementedError('TODO')