How to make custom LinOp convertible to CSR? #1093
-
Your ACM paper has an example showing how to define a custom Several questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @lahwaacz, I will try to address the points you have raised.
I hope this could clarify your questions. We will work on making our documentation more expressive with regard to the points you brought up! |
Beta Was this translation helpful? Give feedback.
-
Hi Jakub, I'll try to answer the individual questions:
|
Beta Was this translation helpful? Give feedback.
Hi @lahwaacz, I will try to address the points you have raised.
block_size=1
only reqiures that the diagonal can be extracted. We should improve our documentation to make this clear.LinOp
type that is convertible to CSR, you have to implement theConvertibleTo<Csr<value_type, index_type>>
interface. This requires implementing the two functionsvoid convert_to(Csr<value_type, index_type>* result) const
andvoid move_to(Csr<value_type, index_type>*…