Skip to content
Snippets Groups Projects
Forked from agnumpde / dune-tectonic
156 commits ahead of the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
maximum.py 205 B
import numpy as np


def maximum(x):
    size = x.shape
    res = np.zeros(size[0])

    for time_step in range(size[0]):
        res[time_step] = max(res[time_step], max(x[time_step, :]))

    return res