Report nnz(J) for CG solver.
PiperOrigin-RevId: 939806054 Change-Id: Icb2955511e33be046a4665fb39bce2546d6d4e3d
This commit is contained in:
committed by
Copybara-Service
parent
e0bb2b0665
commit
7c706b273a
@@ -97,7 +97,7 @@ typedef struct mjData_ {
|
||||
// solver statistics
|
||||
mjSolverStat solver[mjNISLAND*mjNSOLVER]; // solver statistics per island, per iteration
|
||||
int solver_niter[mjNISLAND]; // number of solver iterations, per island
|
||||
int solver_nnz[mjNISLAND]; // number of nonzeros in Hessian or efc_AR, per island
|
||||
int solver_nnz[mjNISLAND]; // number of nonzeros in solver matrix, per island
|
||||
mjtNum solver_fwdinv[2]; // forward-inverse comparison: qfrc, efc
|
||||
|
||||
// diagnostics
|
||||
|
||||
@@ -121,7 +121,7 @@ typedef struct mjData_ {
|
||||
// solver statistics
|
||||
mjSolverStat solver[mjNISLAND*mjNSOLVER]; // solver statistics per island, per iteration
|
||||
int solver_niter[mjNISLAND]; // number of solver iterations, per island
|
||||
int solver_nnz[mjNISLAND]; // number of nonzeros in Hessian or efc_AR, per island
|
||||
int solver_nnz[mjNISLAND]; // number of nonzeros in solver matrix, per island
|
||||
mjtNum solver_fwdinv[2]; // forward-inverse comparison: qfrc, efc
|
||||
|
||||
// diagnostics
|
||||
|
||||
@@ -5524,7 +5524,7 @@ STRUCTS: Mapping[str, StructDecl] = dict([
|
||||
inner_type=ValueType(name='int'),
|
||||
extents=(20,),
|
||||
),
|
||||
doc='number of nonzeros in Hessian or efc_AR, per island',
|
||||
doc='number of nonzeros in solver matrix, per island',
|
||||
),
|
||||
StructFieldDecl(
|
||||
name='solver_fwdinv',
|
||||
|
||||
@@ -2474,7 +2474,7 @@ static void mj_solPrimal(const mjModel* m, mjData* d, int island, int maxiter, i
|
||||
d->solver_nnz[island_stat] = nv*nv;
|
||||
}
|
||||
} else {
|
||||
d->solver_nnz[island_stat] = 0;
|
||||
d->solver_nnz[island_stat] = ctx.nJ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user