#!/usr/bin/env python  
# encoding: utf-8  

"""
@version: v1.0 
@author: zhangyw
@site: http://blog.zhangyingwei.com
@software: PyCharm 
@file: knn_demos.py 
@time: 2017/11/20 17:09 
"""

import numpy as np

x_mat = np.array([
    [1,2],
    [3,4],
    [5,6],
    [7,8]
])

y_mat = np.array([9,-1])

print(x_mat*y_mat)