Tutorial by Topics: numpy

NumPy (pronounced “numb pie” or sometimes “numb pea”) is an extension to the Python programming language that adds support for large, multi-dimensional arrays, along with an extensive library of high-level mathematical functions to operate on these arrays. VersionRelease Date1.3.02009-03-201.4...
numpy.dot(a, b, out=None) NameDetailsaa numpy arrayba numpy arrayouta numpy array numpy.dot Returns the dot product of a and b. If a and b are both scalars or both 1-D arrays then a scalar is returned; otherwise an array is returned. If out is given, then it is returned.
numpy.cross(a, b) # cross product of a and b (or vectors in a and b) numpy.cross(a, b, axisa=-1) #cross product of vectors in a with b, s.t. vectors in a are laid out along axis axisa numpy.cross(a, b, axisa=-1, axisb=-1, axisc=-1) # cross products of vectors in a and b, output vectors laid ou...

Page 1 of 1