Home
last modified time | relevance | path

Searched refs:J0 (Results 1 – 25 of 67) sorted by relevance

123

/petsc/src/ksp/ksp/utils/lmvm/tests/
H A Dex3.c131 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 Dsolve_performance.c14 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 Dex1.c439 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 Dex5_mat_type-lmvmbadbroyden.out13 J0:
24 J0:
35 J0:
46 J0:
57 J0:
68 J0:
79 J0:
90 J0:
101 J0:
112 J0:
[all …]
H A Dex5_mat_type-lmvmsr1.out13 J0:
24 J0:
35 J0:
46 J0:
57 J0:
68 J0:
79 J0:
90 J0:
101 J0:
112 J0:
[all …]
H A Dex5_mat_type-lmvmbroyden.out13 J0:
24 J0:
35 J0:
46 J0:
57 J0:
68 J0:
79 J0:
90 J0:
101 J0:
112 J0:
[all …]
H A Dex5_mat_type-lmvmsymbroyden.out13 J0:
31 J0:
49 J0:
67 J0:
85 J0:
103 J0:
121 J0:
139 J0:
157 J0:
175 J0:
[all …]
H A Dex5_mat_type-lmvmdfp.out13 J0:
30 J0:
47 J0:
64 J0:
81 J0:
98 J0:
115 J0:
132 J0:
149 J0:
166 J0:
[all …]
H A Dex5_mat_type-lmvmbfgs.out13 J0:
30 J0:
47 J0:
64 J0:
81 J0:
98 J0:
115 J0:
132 J0:
149 J0:
166 J0:
[all …]
H A Dex5_mat_type-lmvmdiagbroyden.out13 J0:
30 J0:
47 J0:
64 J0:
81 J0:
98 J0:
115 J0:
132 J0:
149 J0:
166 J0:
[all …]
H A Dex5_mat_type-lmvmsymbadbroyden.out13 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 Dlmvmutils.c53 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 Dlmvmimpl.c127 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 Dsolve_performance_0.out10 Cache J0 products: true
12 J0:
H A Dex1_sr1.out8 J0 KSP:
/petsc/src/tao/bound/impls/bqnk/
H A Dbqnk.c67 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 Dex1_2c_snes_tr_qn-different.out37 J0:
55 J0:
/petsc/src/ts/tutorials/output/
H A Dex20opt_p_1.out59 J0:
94 J0:
H A Dex20opt_p_3.out67 J0:
102 J0:
/petsc/src/tao/bound/tutorials/output/
H A Djbearing2_18.out69 J0:
100 J0:
H A Djbearing2_17.out69 J0:
102 J0:
H A Dplate2_15.out34 J0:
99 J0:
H A Dplate2_17.out74 J0:
109 J0:
H A Dplate2_16.out74 J0:
110 J0:
/petsc/src/ksp/ksp/utils/lmvm/diagbrdn/
H A Ddiagbrdn.c9 PetscCall(MatSolve(lmvm->J0, F, dX)); in MatSolve_DiagBrdn()
18 PetscCall(MatMult(lmvm->J0, X, Z)); in MatMult_DiagBrdn()

123