LAPACKError =========== .. cpp:class:: numpy::LAPACKError numpy C++ class. Example ------- .. code-block:: cpp #include using namespace numpy; // Use LAPACKError LAPACKError obj; // ... operations ... Constructors ------------ .. list-table:: :widths: 55 25 20 :header-rows: 1 * - Signature - Location - Example * - ``LAPACKError(const std::string &routine, lapack_intinfo)`` - NP_MKL_LINALG.H:46 - Other Methods ------------- .. list-table:: :widths: 40 20 15 25 :header-rows: 1 * - Signature - Return Type - Location - Example * - ``std::string format_error(const std::string &routine, lapack_intinfo)`` - std::string - NP_MKL_LINALG.H:54 - * - ``lapack_int info()`` - lapack_int - NP_MKL_LINALG.H:49 - :ref:`View ` Code Examples ------------- The following examples are extracted from the test suite. .. _example-lapackerror-info-0: .. dropdown:: info (np_test_2_all.cpp:19772) :class-title: example-dropdown .. code-block:: cpp :linenos: :lineno-start: 19762 :emphasize-lines: 11 // ============================================================================ // INFO TESTS (using primitive types to avoid NDArray complexities) // ============================================================================ void np_test_introspection_info() { std::cout << "========= info: display object information ======================="; // Test info on primitive type int x = 42; // std::cout << "Primitive type info:" << std::endl; numpy::introspection::info(x); double y = 3.14; // std::cout << "Double type info:" << std::endl; numpy::introspection::info(y, true); bool passed = true; // Just verify no exceptions if (!passed) { std::cout << " [FAIL] : in np_test_introspection_info() : info test failed"; throw std::runtime_error("np_test_introspection_info failed");