from functools import reduce


def x_mult(col, row):
    """
    Calculate dot product of two vectors
    :param col: col vector
    :param row: row vector
    :return: result (number
    """
    arr = [0, 1, 2]
    return reduce(lambda total, current: total + col[current]*row[current], arr, 0)