#NEWLINE# def dot( vec1 , vec2 ) : #NEWLINE# #INDENT# 'Dot product convenience wrapper for Vector.dot(): \n' #NEWLINE# if ( not isinstance ( vec1 , ( Vector , Dyadic ) ) ) : #NEWLINE# #INDENT# raise TypeError ( 'Dot product is between two vectors' ) #NEWLINE# #UNINDENT# return ( vec1 & vec2 )