-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Solver_interface: Add support for the Accelerate Library #8157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
/*! | ||
\ingroup PkgSolverInterfaceLS | ||
|
||
The class `Accelerate_solver_traits` provides an interface to the sparse solvers of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
of what?
/// \pre A.row_dimension() == B.dimension(). | ||
/// \pre A.column_dimension() == X.dimension(). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Between backticks ?
|
||
The class `Accelerate_sparse_matrix` is a wrapper around the `SparseMatrix_Double` matrix type | ||
<a href=https://developer.apple.com/documentation/accelerate/sparsematrix_double">`Accelerate::SparseMatrix`_Double</a> | ||
that represents general matrices, be they symmetric or not. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"be they" ?
|
||
/// Create a rectangular matrix initialized with zeros. | ||
/// | ||
/// \pre rows == columns if `is_symmetric` is true. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rows == columns and also true between backticks?
/// Return the matrix number of columns | ||
int column_dimension() const { return m_columns; } | ||
|
||
/// Write access to a matrix coefficient: a_ij <- val. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a_ij <- val backticks?
|
||
/// Write access to a matrix coefficient: a_ij <- val. | ||
/// | ||
/// Users can optimize calls to this function by setting 'new_coef' to `true` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'new_coef' backticks instead of single quotes?
/// \pre 0 <= i < row_dimension(). | ||
/// \pre 0 <= j < column_dimension(). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backticks?
/// if the coefficient does not already exist in the matrix. | ||
/// | ||
/// \warning For symmetric matrices, `Accelerate_sparse_matrix` only stores the lower triangle | ||
/// and `set_coef()` does nothing if (i, j) belongs to the upper triangle. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(i, j) backticks?
/// Write access to a matrix coefficient: a_ij <- a_ij + val. | ||
/// | ||
/// \warning For symmetric matrices, Accelerate_sparse_matrix only stores the lower triangle | ||
/// `add_coef()` does nothing if (i, j) belongs to the upper triangle. | ||
/// | ||
/// \pre 0 <= i < row_dimension(). | ||
/// \pre 0 <= j < column_dimension(). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
/// \pre 0 <= i < row_dimension(). | ||
/// \pre 0 <= j < column_dimension(). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backticks?
Hi @albert-github, This is a draft and I wrote that it is work in progress. So please just wait a little bit. Nevertheless, thanks a lot. |
Summary of Changes
Add the possibility to use the solvers of the Accelerate library.
This PR is work in progress as the next step is the C++/Swift bridge using this repository
Release Management
TODO