Home
last modified time | relevance | path

Searched refs:n_ (Results 1 – 5 of 5) sorted by relevance

/petsc/src/dm/impls/swarm/
H A Ddata_ex.c276 PetscInt n_, *proc_neighbours_; in DMSwarmDataExCompleteCommunicationMap_Private() local
285 n_ = n; in DMSwarmDataExCompleteCommunicationMap_Private()
286 PetscCall(PetscMalloc1(n_, &proc_neighbours_)); in DMSwarmDataExCompleteCommunicationMap_Private()
287 for (i = 0; i < n_; ++i) proc_neighbours_[i] = proc_neighbours[i]; in DMSwarmDataExCompleteCommunicationMap_Private()
296 PetscCall(MatMPIAIJSetPreallocation(A, n_, NULL, n_, NULL)); in DMSwarmDataExCompleteCommunicationMap_Private()
299 PetscCall(PetscMalloc1(n_, &vals)); in DMSwarmDataExCompleteCommunicationMap_Private()
300 for (i = 0; i < n_; ++i) vals[i] = 1.0; in DMSwarmDataExCompleteCommunicationMap_Private()
301 PetscCall(MatSetValues(A, 1, &rank_, n_, proc_neighbours_, vals, INSERT_VALUES)); in DMSwarmDataExCompleteCommunicationMap_Private()
306 for (i = 0; i < n_; ++i) vals[i] = 2.0; in DMSwarmDataExCompleteCommunicationMap_Private()
307 PetscCall(MatSetValues(A, n_, proc_neighbours_, 1, &rank_, vals, INSERT_VALUES)); in DMSwarmDataExCompleteCommunicationMap_Private()
/petsc/doc/manual/
H A Dregressor.md21 Given a matrix of observed data $X$ with size $n_{samples}$ by $n_{features}$,
22 predict a vector of "target" values $y$ (of size $n_{samples}$), where the $i$th entry of $y$
H A Dts.md1128 \Psi_i(y_0,p) = \Phi_i(y_F,p) + \int_{t_0}^{t_F} r_i(y(t),p,t)dt \quad i=1,...,n_\text{cost}.
1153 One must create two arrays of $n_\text{cost}$ vectors
1168 where `numcost` denotes $n_\text{cost}$.
/petsc/src/sys/utils/
H A Dsorti.c1105 PetscInt n_, *L_, *J_, ak, bk, k; in PetscMergeIntArrayPair() local
1110 n_ = an + bn; in PetscMergeIntArrayPair()
1111 *n = n_; in PetscMergeIntArrayPair()
1112 if (!*L) PetscCall(PetscMalloc1(n_, L)); in PetscMergeIntArrayPair()
1114 if (!*J) PetscCall(PetscMalloc1(n_, J)); in PetscMergeIntArrayPair()
/petsc/src/dm/dt/fe/impls/basic/
H A Dfebasic.c105 PetscBLASInt n_, p_, k_, lda, ldb, ldc; in TensorContract_Private() local
110 PetscCall(PetscBLASIntCast(n, &n_)); in TensorContract_Private()
114 ldb = n_; in TensorContract_Private()
116 …PetscCallBLAS("BLASgemm", BLASREALgemm_("N", "T", &p_, &n_, &k_, &one, A + i * k * p, &lda, B, &ld… in TensorContract_Private()