Hi,
I would use the Matrix class to store dense matrices. You could wrap you dense matrix in a BaseMatrix to use it in a routine that expects BaseMatrix.
You can even do this in Python, you only need to implement Mult, Height and Width functions:
Code:
class MyBaseMatrix(BaseMatrix):
def __init__(self):
super().__init__()
def Height(self):
return ...
def Width(self):
return ...
def Mult(self, x, y):
# implement y = mat * x
the incoming vectors are BaseVector. You can use the x.FV() to get a flatvector from the basevector
Best Christopher