Example #1
0
def get_all():
    """ Get all data matrices """
    matrices = MatrixController.get_all_data()

    if not matrices:
        return jsonify(error='No matrices were found'), 500

    return jsonify(matrices=serialize_sqla(matrices))
Example #2
0
def multiply():
    return render_template('multiply.htm',
                           data={
                               'matrices': MatrixController.get_all_data(),
                           })