PETSC_STATIC_INLINE PetscErrorCode PetscIntMultError(PetscInt a,PetscInt b,PetscInt *result)Not Collective
a | - the PetscInt value | |
b | - the second value |
Output Parameter:ma
Use PetscInt64Mult() to compute the product of two 32 bit PetscInt and store in a PetscInt64 Use PetscIntMultTruncate() to compute the product of two PetscInt and truncate it to fit in a PetscInt
Developers Note: We currently assume that PetscInt addition does not overflow, this is obviously wrong but requires many more checks.
Level:advanced
Location:include/petscsys.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages