Skip to content

Commit

Permalink
Add python doc
Browse files Browse the repository at this point in the history
  • Loading branch information
lowener committed Nov 11, 2024
1 parent 288ea20 commit 80dafb9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cpp/include/raft/sparse/solver/lanczos_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@ namespace raft::sparse::solver {

template <typename ValueTypeT>
struct lanczos_solver_config {
/** The number of eigenvalues and eigenvectors to compute. Must be 1 <= k < n.*/
int n_components;
/** Maximum number of iteration. */
int max_iterations;
/** The number of Lanczos vectors generated. Must be k + 1 < ncv < n. */
int ncv;
/** Tolerance for residuals ``||Ax - wx||`` */
ValueTypeT tolerance;
/** random seed */
uint64_t seed;
};

Expand Down
1 change: 1 addition & 0 deletions docs/source/pylibraft_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ Python API
pylibraft_api/matrix.rst
pylibraft_api/neighbors.rst
pylibraft_api/random.rst
pylibraft_api/sparse.rst
11 changes: 11 additions & 0 deletions docs/source/pylibraft_api/sparse.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Sparse
======

This page provides pylibraft class references for the publicly-exposed elements of the `pylibraft.sparse.linalg.eigsh` package.


.. role:: py(code)
:language: python
:class: highlight

.. autofunction:: pylibraft.sparse.linalg.eigsh

0 comments on commit 80dafb9

Please sign in to comment.