__author__ = 'renjieguan'

import numpy as np

# a = np.array([1, -1])
# b = np.array([1, 2])
# result = np.dot(b, a)
# print result

a = np.array([[0, 2], [1, 0]])
b = np.array([[1, -2], [1, 0]])
# a = np.array([[0, 2], [1, 0]])
# b = np.array([[1, 1], [-2, 0]])

a = np.array([[0, -2, 2], [5, 1, 5], [1, 4, -1]])
b = np.array([[0, 1, 2], [3, 4, 5], [6, 7, 8]])

a = np.array([1, 2])
b = np.array([1, -1])

result = np.dot(a, b)
print result
