-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomplexMatOperations.h
More file actions
24 lines (13 loc) · 915 Bytes
/
complexMatOperations.h
File metadata and controls
24 lines (13 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef COMPLEXMATOPERATIONS_H
#define COMPLEXMATOPERATIONS_H
#include <petscmat.h>
#define nelem(x) (sizeof(x) / sizeof((x)[0]))
PetscErrorCode complexProduct(PetscScalar*, PetscScalar* resultImag, PetscScalar*, PetscScalar*, PetscInt);
PetscErrorCode complexMatrixDeterminant_2x2(PetscScalar*, PetscScalar*, PetscScalar*, PetscScalar*);
PetscErrorCode complexMatrixDeterminant_3x3(PetscScalar*, PetscScalar*, PetscScalar*, PetscScalar*);
PetscErrorCode complexScalarInverse(PetscScalar*, PetscScalar*, PetscScalar, PetscScalar);
PetscErrorCode complexMatrixInverse_2x2(PetscScalar*, PetscScalar*, PetscScalar*, PetscScalar*);
PetscErrorCode complexMatrixInverse_3x3(PetscScalar*, PetscScalar*, PetscScalar*, PetscScalar*);
PetscErrorCode zeroRowColIndexes_SymMat3x3(PetscInt*, PetscInt*, PetscScalar*, PetscScalar*);
PetscErrorCode setUnion(PetscInt*, PetscInt*, PetscInt, PetscInt*, PetscInt);
#endif