| /petsc/src/ksp/ksp/utils/lmvm/tests/ |
| H A D | ex3.c | 131 Mat J0; in main() local 133 …ateMatWithTestSizes(comm, MATDENSE, n, N, j0_size, j0_call_setup ? PETSC_TRUE : PETSC_FALSE, &J0)); in main() 134 PetscCall(MatLMVMSetJ0(B, J0)); in main() 135 PetscCall(MatZeroEntries(J0)); in main() 136 PetscCall(MatShift(J0, 1.0)); in main() 137 PetscCall(MatDestroy(&J0)); in main() 147 Mat J0; in main() local 149 …estSizes(comm, MATCONSTANTDIAGONAL, n, N, j0_size, j0_call_setup ? PETSC_TRUE : PETSC_FALSE, &J0)); in main() 153 PetscCall(PCSetOperators(J0pc, J0, J0)); in main() 155 PetscCall(MatZeroEntries(J0)); in main() [all …]
|
| H A D | solve_performance.c | 14 Mat B, J0; in main() local 33 PetscCall(MatLMVMGetJ0(B, &J0)); in main() 34 PetscCall(MatZeroEntries(J0)); in main() 35 PetscCall(MatShift(J0, 1.0)); in main()
|
| H A D | ex1.c | 439 static PetscErrorCode MatSetRandomWithShift(Mat J0, PetscRandom rand, PetscBool is_hermitian, Petsc… in MatSetRandomWithShift() argument 442 PetscCall(MatSetRandom(J0, rand)); in MatSetRandomWithShift() 446 PetscCall(MatHermitianTranspose(J0, MAT_INITIAL_MATRIX, &J0H)); in MatSetRandomWithShift() 447 PetscCall(MatAXPY(J0, 1.0, J0H, SAME_NONZERO_PATTERN)); in MatSetRandomWithShift() 460 PetscCall(PetscObjectGetComm((PetscObject)J0, &comm)); in MatSetRandomWithShift() 461 PetscCall(MatGetSize(J0, &N, NULL)); in MatSetRandomWithShift() 462 PetscCall(MatDuplicate(J0, MAT_COPY_VALUES, &J0copy)); in MatSetRandomWithShift() 476 PetscCall(MatShift(J0, shift)); in MatSetRandomWithShift() 477 PetscCall(MatAssemblyBegin(J0, MAT_FINAL_ASSEMBLY)); in MatSetRandomWithShift() 478 PetscCall(MatAssemblyEnd(J0, MAT_FINAL_ASSEMBLY)); in MatSetRandomWithShift()
|
| /petsc/src/ksp/ksp/tests/output/ |
| H A D | ex5_mat_type-lmvmbadbroyden.out | 13 J0: 24 J0: 35 J0: 46 J0: 57 J0: 68 J0: 79 J0: 90 J0: 101 J0: 112 J0: [all …]
|
| H A D | ex5_mat_type-lmvmsr1.out | 13 J0: 24 J0: 35 J0: 46 J0: 57 J0: 68 J0: 79 J0: 90 J0: 101 J0: 112 J0: [all …]
|
| H A D | ex5_mat_type-lmvmbroyden.out | 13 J0: 24 J0: 35 J0: 46 J0: 57 J0: 68 J0: 79 J0: 90 J0: 101 J0: 112 J0: [all …]
|
| H A D | ex5_mat_type-lmvmsymbroyden.out | 13 J0: 31 J0: 49 J0: 67 J0: 85 J0: 103 J0: 121 J0: 139 J0: 157 J0: 175 J0: [all …]
|
| H A D | ex5_mat_type-lmvmdfp.out | 13 J0: 30 J0: 47 J0: 64 J0: 81 J0: 98 J0: 115 J0: 132 J0: 149 J0: 166 J0: [all …]
|
| H A D | ex5_mat_type-lmvmbfgs.out | 13 J0: 30 J0: 47 J0: 64 J0: 81 J0: 98 J0: 115 J0: 132 J0: 149 J0: 166 J0: [all …]
|
| H A D | ex5_mat_type-lmvmdiagbroyden.out | 13 J0: 30 J0: 47 J0: 64 J0: 81 J0: 98 J0: 115 J0: 132 J0: 149 J0: 166 J0: [all …]
|
| H A D | ex5_mat_type-lmvmsymbadbroyden.out | 13 J0: 31 J0: 49 J0: 67 J0: 85 J0: 103 J0: 121 J0: 139 J0: 157 J0: 175 J0: [all …]
|
| /petsc/src/ksp/ksp/utils/lmvm/ |
| H A D | lmvmutils.c | 53 PetscCall(MatLMVMUpdate(lmvm->J0, X, F)); in MatLMVMUpdate() 59 static PetscErrorCode MatLMVMCreateJ0(Mat B, Mat *J0) in MatLMVMCreateJ0() argument 66 PetscCall(MatCreate(PetscObjectComm((PetscObject)B), J0)); in MatLMVMCreateJ0() 68 PetscCall(MatSetLayouts(*J0, rmap, cmap)); in MatLMVMCreateJ0() 70 PetscCall(MatSetVecType(*J0, vec_type)); in MatLMVMCreateJ0() 72 PetscCall(MatSetOptionsPrefix(*J0, prefix)); in MatLMVMCreateJ0() 73 PetscCall(MatAppendOptionsPrefix(*J0, "mat_lmvm_J0_")); in MatLMVMCreateJ0() 84 PetscCall(KSPSetOperators(*ksp, lmvm->J0, lmvm->J0)); in MatLMVMCreateJ0KSP() 128 PetscCall(MatDestroy(&lmvm->J0)); in MatLMVMClearJ0() 130 PetscCall(MatLMVMCreateJ0(B, &lmvm->J0)); in MatLMVMClearJ0() [all …]
|
| H A D | lmvmimpl.c | 127 if (lmvm->created_J0) PetscCall(MatSetVecType(lmvm->J0, vtype)); in MatAllocate_LMVM() 253 PetscCall(MatDuplicate(bctx->J0, MAT_COPY_VALUES, &J0_copy)); in MatCopy_LMVM() 339 PetscCall(PetscObjectTypeCompare((PetscObject)lmvm->J0, MATCONSTANTDIAGONAL, &is_scalar)); in MatView_LMVM() 343 PetscCall(MatView(lmvm->J0, pv)); in MatView_LMVM() 379 if (lmvm->created_J0) PetscCall(MatSetFromOptions(lmvm->J0)); in MatSetFromOptions_LMVM() 392 PetscCall(PetscLayoutReference(B->rmap, &lmvm->J0->rmap)); in MatSetUp_LMVM() 393 PetscCall(PetscLayoutReference(B->cmap, &lmvm->J0->cmap)); in MatSetUp_LMVM() 394 PetscCall(MatSetUp(lmvm->J0)); in MatSetUp_LMVM() 472 PetscCall(MatDestroy(&lmvm->J0)); in MatDestroy_LMVM() 527 PetscCall(MatSetOptionsPrefix(lmvm->J0, prefix)); in MatSetOptionsPrefix_LMVM() [all …]
|
| /petsc/src/ksp/ksp/utils/lmvm/tests/output/ |
| H A D | solve_performance_0.out | 10 Cache J0 products: true 12 J0:
|
| H A D | ex1_sr1.out | 8 J0 KSP:
|
| /petsc/src/tao/bound/impls/bqnk/ |
| H A D | bqnk.c | 67 Mat_LMVM *J0; in TaoSolve_BQNK() local 74 if (lmvm->J0) { in TaoSolve_BQNK() 75 PetscCall(PetscObjectBaseTypeCompare((PetscObject)lmvm->J0, MATLMVM, &flg)); in TaoSolve_BQNK() 77 J0 = (Mat_LMVM *)lmvm->J0->data; in TaoSolve_BQNK() 78 J0->nresets = 0; in TaoSolve_BQNK()
|
| /petsc/src/snes/tests/output/ |
| H A D | ex1_2c_snes_tr_qn-different.out | 37 J0: 55 J0:
|
| /petsc/src/ts/tutorials/output/ |
| H A D | ex20opt_p_1.out | 59 J0: 94 J0:
|
| H A D | ex20opt_p_3.out | 67 J0: 102 J0:
|
| /petsc/src/tao/bound/tutorials/output/ |
| H A D | jbearing2_18.out | 69 J0: 100 J0:
|
| H A D | jbearing2_17.out | 69 J0: 102 J0:
|
| H A D | plate2_15.out | 34 J0: 99 J0:
|
| H A D | plate2_17.out | 74 J0: 109 J0:
|
| H A D | plate2_16.out | 74 J0: 110 J0:
|
| /petsc/src/ksp/ksp/utils/lmvm/diagbrdn/ |
| H A D | diagbrdn.c | 9 PetscCall(MatSolve(lmvm->J0, F, dX)); in MatSolve_DiagBrdn() 18 PetscCall(MatMult(lmvm->J0, X, Z)); in MatMult_DiagBrdn()
|