Input/output methods¶
-
medianshape.inout.load_mesh2d(dirname='data/dumps')[source]¶ Loads previously computed mesh in 2D, boundary matrix, input currents, w and v from a directory given as dirname.
-
medianshape.inout.load_mesh3d(dirname='data/dumps')[source]¶ Loads previously computed mesh in 3D, boundary matrix, input currents, w and v from a directory given as dirname.
-
medianshape.inout.load_weights_and_boundary(n_simplices, m_subsimplices, dirname='data/dumps')[source]¶ Loads saved w and v from a directory given as dirname.
-
medianshape.inout.load_input_currents(m_subsimplices, k, dirname='data/dumps')[source]¶ Loads saved input currents from a directory given as dirname.
-
medianshape.inout.load_solutions(n_simplices, m_subsimplices, k, dirname='data/dumps')[source]¶ Loads saved median shape solution from a directory given as dirname.
-
medianshape.inout.load_lp(dirname='data/dumps')[source]¶ Loads a saved settings of Median shape LP such as c, A, b in sparse dok_matrix format from a directory given as dirname.
-
medianshape.inout.dump_lp(A=None, b=None, c=None, dirname='/home/altaa/medianshape/docs/data/dumps', **kwargs)[source]¶ Saves LP settings.