* Test whether a matrix is symmetric. Default tolerance is
* $1000\times32$-bit machine precision.
*/
- PetscBooleanType
+ PetscBool
is_symmetric (const double tolerance = 1.e-12);
/**
* its transpose. Default tolerance is $1000\times32$-bit machine
* precision.
*/
- PetscBooleanType
+ PetscBool
is_hermitian (const double tolerance = 1.e-12);
/**
AssertThrow (ierr == 0, ExcPETScError(ierr));
}
- PetscBooleanType
+ PetscBool
MatrixBase::is_symmetric (const double tolerance)
{
- PetscBooleanType truth;
+ PetscBool truth;
assert_is_compressed ();
const PetscErrorCode ierr = MatIsSymmetric (matrix, tolerance, &truth);
AssertThrow (ierr == 0, ExcPETScError(ierr));
return truth;
}
- PetscBooleanType
+ PetscBool
MatrixBase::is_hermitian (const double tolerance)
{
- PetscBooleanType truth;
+ PetscBool truth;
assert_is_compressed ();
const PetscErrorCode ierr = MatIsHermitian (matrix, tolerance, &truth);
Assert (size() == v.size(),
ExcDimensionMismatch(size(), v.size()));
- PetscBooleanType flag;
+ PetscBool flag;
const PetscErrorCode ierr = VecEqual (vector, v.vector, &flag);
AssertThrow (ierr == 0, ExcPETScError(ierr));
Assert (size() == v.size(),
ExcDimensionMismatch(size(), v.size()));
- PetscBooleanType flag;
+ PetscBool flag;
const PetscErrorCode ierr = VecEqual (vector, v.vector, &flag);
AssertThrow (ierr == 0, ExcPETScError(ierr));