LAPACKError#

class numpy::LAPACKError#

numpy C++ class.

Example#

#include <numpy/np_ndarray.h>
using namespace numpy;

// Use LAPACKError
LAPACKError obj;
// ... operations ...

Constructors#

Signature

Location

Example

LAPACKError(const std::string &routine, lapack_intinfo)

NP_MKL_LINALG.H:46

Other Methods#

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

View

Code Examples#

The following examples are extracted from the test suite.

info (np_test_2_all.cpp:19772)
19762    // ============================================================================
19763    // INFO TESTS (using primitive types to avoid NDArray complexities)
19764    // ============================================================================
19765
19766    void np_test_introspection_info() {
19767      std::cout << "========= info: display object information =======================";
19768
19769      // Test info on primitive type
19770      int x = 42;
19771      // std::cout << "Primitive type info:" << std::endl;
19772      numpy::introspection::info(x);
19773
19774      double y = 3.14;
19775      // std::cout << "Double type info:" << std::endl;
19776      numpy::introspection::info(y, true);
19777
19778      bool passed = true;  // Just verify no exceptions
19779
19780      if (!passed) {
19781        std::cout << "  [FAIL] : in np_test_introspection_info() : info test failed";
19782        throw std::runtime_error("np_test_introspection_info failed");