SparseMatrix ============ .. cpp:class:: numpy::SparseMatrix numpy C++ class. Example ------- .. code-block:: cpp #include using namespace numpy; // Use SparseMatrix SparseMatrix obj; // ... operations ... Constructors ------------ .. list-table:: :widths: 55 25 20 :header-rows: 1 * - Signature - Location - Example * - ``SparseMatrix(size_tm, size_tn)`` - NP_LINALG_UTILS.H:2204 - Indexing / Selection -------------------- .. list-table:: :widths: 40 20 15 25 :header-rows: 1 * - Signature - Return Type - Location - Example * - ``double getSparsityRatio()`` - double - NP_LINALG_UTILS.H:2256 - Other Methods ------------- .. list-table:: :widths: 40 20 15 25 :header-rows: 1 * - Signature - Return Type - Location - Example * - ``SparseMatrix fromDense(const NDArray&matrix, typename real_type::typetolerance = machine_epsilon::type>())`` - SparseMatrix - NP_LINALG_UTILS.H:2209 -