Lines Matching refs:val
51 PetscErrorCode PetscRandomGetValue(PetscRandom r, PetscScalar *val) in PetscRandomGetValue() argument
56 if (!r->ops->getvalue) PetscUseTypeMethod(r, getvalues, 1, val); in PetscRandomGetValue()
57 else PetscUseTypeMethod(r, getvalue, val); in PetscRandomGetValue()
90 PetscErrorCode PetscRandomGetValueReal(PetscRandom r, PetscReal *val) in PetscRandomGetValueReal() argument
95 if (!r->ops->getvaluereal) PetscUseTypeMethod(r, getvaluesreal, 1, val); in PetscRandomGetValueReal()
96 else PetscUseTypeMethod(r, getvaluereal, val); in PetscRandomGetValueReal()
124 PetscErrorCode PetscRandomGetValues(PetscRandom r, PetscInt n, PetscScalar *val) in PetscRandomGetValues() argument
132 for (PetscInt i = 0; i < n; ++i) PetscCall(getvalue(r, val + i)); in PetscRandomGetValues()
133 } else PetscUseTypeMethod(r, getvalues, n, val); in PetscRandomGetValues()
158 PetscErrorCode PetscRandomGetValuesReal(PetscRandom r, PetscInt n, PetscReal *val) in PetscRandomGetValuesReal() argument
165 for (i = 0; i < n; i++) PetscUseTypeMethod(r, getvaluereal, val + i); in PetscRandomGetValuesReal()
166 } else PetscUseTypeMethod(r, getvaluesreal, n, val); in PetscRandomGetValuesReal()