#include "petscdt.h" PetscErrorCode PetscDTAltVWedgeMatrix(PetscInt N, PetscInt j, PetscInt k, const PetscReal *a, PetscReal *awedgeMat)
N | - the dimension of the vector space, N >= 0 | |
j | - the degree j of the j-form a, 0 <= j <= N | |
k | - the degree k of the k-forms that (a wedge) will be applied to, 0 <= k <= N and 0 <= j+k <= N | |
a | - a j-form, size [N choose j] |
awedge | - (a wedge), an [(N choose j+k) x (N choose k)] matrix in row-major order, such that (a wedge) * b = a wedge b |