Add optional argument to LUFactors::Factor that prescribes
a tolernace for fuzzy comparisons. This avoids using magic
numerical values in the implementation and allows the caller
to modify the tolerance if needed. If a tolerance is not
specified, the default is set to 1.e-9.
Overloads the SetCol and SetRow methods of the DenseMatrix class
to take raw pointers for convenience and to avoid creation of
small objects in a tight loop.
This commit adds a convenience routine to solve linear systems
of the form `Ax=b` for a given square DenseMatrix instance `A`
and right handside vector, `b`. In general non-trivial case of
a matrix that is 3x3 or greater, this routine serves as a thin
wrapper around the functionality of the LUFactors class that
is provided for convenience. In addition, this commit adds
associated unit tests for the new routine.
and transfers.
The Memory class is now used by some MFEM classes (like Array and
Vector) which can be used on the Device. Such classes now provide
methods to access the underlying Memory object, e.g. GetMemory.
Updated ex1/ex1p and ex6/ex6p to not need to enable/disable the
Device at specific points -- the Device is now enabled just at the
start. Also, the same examples can now run on Device (e.g. -d cuda)
without the partial assembly option (-pa) -- full assembly will
be still done on CPU but the sparse matrix action and vector
operations will be done using the Device.
Reverted changes in class DenseMatrix related to using the Device.
At this point, DenseMatrix operations are only used for small matrices
and using the Device in this case is not a good option.
This matches the names of the functions in mm:: and also more closely
matches their use in the rest of mfem.
Also removed the template parameter for mm::free since it is not needed.
It is possible in the future to add equivalents of new and delete to the
mm class (with different names since those are keywords) in case it is
desirable to call the constructor and destructor.