def decode_material(encoded_material, vec_to_elem_dict):
    """Input: -  encoded_material: vector
    - vec_to_elem_dict: dict mapping elements to indexes
    Returns: - decoded material (dictionary with stoich coeffs)
    """
    decoded_material = {vec_to_elem_dict[index]: val for index, val in enumerate(encoded_material)}

    return decoded_material