[sage-devel] Re: Determinant of a SR matrix substituted by a floating number is not numerical stable

2023-01-04 Thread 陳孜穎
Sorry that I missed some important message. The order if save and load are not inversed. What I want to do is to load the data stored in the first run when running the second time of my program. The intention is I guessed (may not be true) some implicit initial states of each run affect the

[sage-devel] Re: Determinant of a SR matrix substituted by a floating number is not numerical stable

2023-01-04 Thread John H Palmieri
Your current code has fragments like this: weighted_load = load_obj(f'./sym.sobj') print(f'weighted == weighted_load {weighted == weighted_load}') save(weighted, f'./sym.sobj') In particular, "sym.sobj" is read before it is written, so 'weighted_load' will be None. If I put the "save" lines