Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/struphy/feec/linear_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,11 +448,11 @@ def dtype(self):

@property
def tosparse(self):
raise NotImplementedError()
return self.toarray_struphy(is_sparse=True)

@property
def toarray(self):
raise NotImplementedError()
return self.toarray_struphy(is_sparse=False)

@property
def bc(self):
Expand Down
6 changes: 2 additions & 4 deletions src/struphy/feec/mass.py
Original file line number Diff line number Diff line change
Expand Up @@ -2513,7 +2513,6 @@ def codomain_femspace(self):
def dtype(self):
return self._dtype

@property
def tosparse(self):
if all(op is None for op in (self._W_extraction_op, self._V_extraction_op)):
for bl in self._V_boundary_op.bc:
Expand All @@ -2529,7 +2528,6 @@ def tosparse(self):
else:
raise NotImplementedError()

@property
def toarray(self):
if all(op is None for op in (self._W_extraction_op, self._V_extraction_op)):
for bl in self._V_boundary_op.bc:
Expand Down Expand Up @@ -3251,11 +3249,11 @@ def derham(self):

@property
def tosparse(self):
raise NotImplementedError()
return self.toarray_struphy(is_sparse=True)

@property
def toarray(self):
raise NotImplementedError()
return self.toarray_struphy(is_sparse=False)

def transpose(self, conjugate=False):
return StencilMatrixFreeMassOperator(
Expand Down
Loading