Commit Graph

975 Commits (76a2203b50f4cf61495c3015238cedeaada74885)

Author SHA1 Message Date
Sébastien Villemot 6027d31da2
Bytecode: rename some methods in Interpreter for clarity 2023-10-20 14:31:46 -04:00
Sébastien Villemot b17ff164fc
Bytecode: rename argument in Interpreter::compute_block_time()
To avoid ambiguity with class member with same name.
2023-10-20 11:49:04 -04:00
Sébastien Villemot 753848ab4b
Bytecode: simplify Interpreter::Simple_Init() 2023-10-20 11:47:13 -04:00
Sébastien Villemot 12a0781bc4
Bytecode: simplify Interpreter::simple_bksub() 2023-10-20 11:43:48 -04:00
Sébastien Villemot 8573c6d06a
Bytecode: simplify Interpreter::bksub() and Interpreter::complete() 2023-10-20 11:42:04 -04:00
Sébastien Villemot 8305afc6b3
Bytecode: simplify Interpreter::compare() 2023-10-20 11:36:35 -04:00
Sébastien Villemot ed45b2092f
Bytecode: simplify a couple of other Interpreter methods 2023-10-20 11:31:23 -04:00
Sébastien Villemot 9964de1c5f
Bytecode: simplify Interpreter::Solve_Matlab_BiCGStab() 2023-10-20 11:23:15 -04:00
Sébastien Villemot 1492073669
Bytecode: simplify Interpreter::Solve_Matlab_GMRES() 2023-10-20 11:18:40 -04:00
Sébastien Villemot 9b9c87e09f
Bytecode: further simplify Interpreter::Read_SparseMatrix() 2023-10-20 10:57:53 -04:00
Sébastien Villemot 4d13d73c58
Bytecode: simplify Interpreter::Solve_LU_UMFPack() (two boundaries version) 2023-10-20 10:47:53 -04:00
Sébastien Villemot 401fbd25a6
Bytecode: simplify Interpreter::Solve_LU_UMFPack() (one boundary version) 2023-10-20 10:41:25 -04:00
Sébastien Villemot 853b195432
Bytecode: remove unused methods in Interpreter 2023-10-20 10:34:17 -04:00
Sébastien Villemot 2617f5a4be
Bytecode: simplify Interpreter::Solve_Matlab_Relaxation() 2023-10-20 10:31:51 -04:00
Sébastien Villemot c132817780
Bytecode: simplify Interpreter::Solve_ByteCode_Sparse_GaussianElimination() 2023-10-20 10:25:06 -04:00
Sébastien Villemot 6c3325cc5e
Bytecode: simplify Interpreter::Solve_ByteCode_Symbolic_Sparse_GaussianElimination() 2023-10-20 10:20:45 -04:00
Sébastien Villemot d5618a61d9
Bytecode: simplify Interpreter::golden() 2023-10-20 10:17:08 -04:00
Sébastien Villemot f47507395d
Bytecode: simplify Interpreter::mnbrak() 2023-10-20 10:16:53 -04:00
Sébastien Villemot 9eaf1510f6
Bytecode: make some parameters of Interpreter::Init_Matlab_Sparse() as const 2023-10-20 09:41:01 -04:00
Sébastien Villemot 093a547684
Bytecode: simplify Interpreter::compute_complete() 2023-10-20 09:38:03 -04:00
Sébastien Villemot 0bfcc6d2f5
Bytecode: simplify Interpreter::Init_UMFPACK_Sparse_Simple() 2023-10-19 17:34:06 -04:00
Sébastien Villemot 860285b8b8
Bytecode: simplify Interpreter::Init_Matlab_Sparse_Simple() 2023-10-19 17:34:05 -04:00
Sébastien Villemot 233d0815a6
Bytecode: simplify Interpreter::Init_UMFPACK_Sparse() 2023-10-19 17:33:24 -04:00
Sébastien Villemot dc6a84196a
Bytecode: simplify Interpreter::Init_Matlab_Sparse() 2023-10-19 17:01:51 -04:00
Sébastien Villemot 88a0f67585
Bytecode: simplify Interpreter::Init_GE() 2023-10-19 16:58:14 -04:00
Sébastien Villemot 24fc3854e2
Bytecode: simplify Interpreter::Singular_display() 2023-10-19 16:55:51 -04:00
Sébastien Villemot 115a0a8e5d
Bytecode: simplify Interpreter::Read_SparseMatrix() 2023-10-19 16:52:48 -04:00
Sébastien Villemot e5bf3f79b3
Bytecode: simplify Interpreter::fixe_u() 2023-10-19 16:48:00 -04:00
Sébastien Villemot 197347c870
Bytecode: merge two methods 2023-10-19 16:43:40 -04:00
Sébastien Villemot e104318e6b
Bytecode: simplify Interpreter::Simulate_Newton_Two_Boundaries() 2023-10-19 16:38:51 -04:00
Sébastien Villemot 68cee02eb5
Bytecode: simplify Interpreter::check_for_controlled_exo_validity() 2023-10-19 16:33:54 -04:00
Sébastien Villemot fdb3cd0623
Bytecode: simplify Interpreter::compute_complete() 2023-10-19 16:31:50 -04:00
Sébastien Villemot 8e74322325
Bytecode: rename a method for clarity 2023-10-19 15:58:33 -04:00
Sébastien Villemot af1985d569
Bytecode: mark function as static 2023-10-19 15:56:55 -04:00
Sébastien Villemot fd16bbe493
Bytecode: simplify Interpreter::initializeTemporaryTerms() 2023-10-19 15:56:39 -04:00
Sébastien Villemot 6809819961
Bytecode: simplify Interpreter::compute_complete_2b() 2023-10-19 15:47:10 -04:00
Sébastien Villemot bbcbcd1eed
Bytecode: improve interface of methods for looking through Jacobian sparse matrix 2023-10-19 14:50:07 -04:00
Sébastien Villemot b747eff473
Bytecode: remove unused method 2023-10-19 14:19:01 -04:00
Sébastien Villemot 846ed7e829
Bytecode: merge class dynSparseMatrix into Interpreter
These two classes were so entangled that their separation was meaningless.
2023-10-19 13:56:10 -04:00
Sébastien Villemot 654b4e57a2
Bytecode: remove several unused class members of SparseMatrix 2023-10-19 10:59:23 -04:00
Sébastien Villemot 06ac452459
Cosmetics: remove empty list of parameters for lambda functions 2023-10-19 09:56:55 -04:00
Sébastien Villemot d78dea3086
Use __builtin_unreachable() to silent some GCC warnings
This is cleaner than using exit() for that purpose.
2023-10-18 14:28:54 -04:00
Sébastien Villemot 9a0462a8a6
Bytecode: remove a couple of useless casts 2023-10-16 18:06:42 -04:00
Sébastien Villemot 06a7acf19b
Bytecode: enforce consistent typing of size variables 2023-10-16 18:00:11 -04:00
Sébastien Villemot 651fed87be
Bytecode: remove warnings about narrowing (-Wnarrowing) 2023-10-16 17:58:36 -04:00
Sébastien Villemot b0fa610357
Bytecode: remove warnings about uninitialized variables (-Wmaybe-uninitialized)
By the way, in the dynamic case, ensure that solve_algo variable corresponds to
options_.solve_algo; it would previously correspond to
options_.stack_solve_algo, while there is already a separate stack_solve_algo
variable for that purpose.
2023-10-16 17:43:20 -04:00
Sébastien Villemot eae9902cb8
Bytecode: restrict scope of some variables 2023-10-16 15:39:13 -04:00
Sébastien Villemot e4a4d2d8e6
Bytecode MEX: get M_ and options_ through input arguments rather than as global variables 2023-10-11 18:50:32 -04:00
Sébastien Villemot 8cc646fbf6
Bytecode MEX: remove syntax where no MATLAB array is passed
Those arrays were then read via oo_ and options_.

As a consequence, this commit drops the dependency of bytecode MEX upon the oo_
global variable.
2023-10-10 17:44:14 -04:00
Sébastien Villemot dcdbd85b10
Bytecode: fix indentation in output of print_bytecode_{static,dynamic}_model commands 2023-10-10 17:41:38 -04:00