Skip to content

Instantly share code, notes, and snippets.

@derb12
derb12 / pentapy_solver_using_asarray.py
Last active June 29, 2021 18:09
A comparison of pentapy's solver when using np.array versus np.asarray
# -*- coding: utf-8 -*-
"""
Modified version of pentapy's 03_perform_simple.py example from
https://github.com/GeoStat-Framework/pentapy/blob/develop/examples/03_perform_simple.py
The code was modified to include a solve_new function that uses np.asarray rather than
np.array whereever the input data is not modified, and to compare the time required to
convert the matrix and array using np.array and np.asarray.
Modifications of pentapy's code was done in accordance with it's MIT license, which is