Table of Contents

Class LapackError

Namespace
NumSharp
Assembly
NumSharp.dll

NumPy's numpy.linalg.lapack_lite.LapackError: the error NumPy's bundled lapack_lite module raises when a LAPACK call gets an argument it cannot pass (Parameter a is not contiguous in lapack_lite.dgelsd, Parameter a is not of type float64 in lapack_lite.dgelsd).

public class LapackError : NumSharpException, ISerializable, INumSharpException
Inheritance
LapackError
Implements
Inherited Members

Remarks

It derives from NumSharpException, as NumPy's derives from Python's Exception directly (it is NOT a LinAlgError: that one reports a mathematical failure, this one a wrong call).

NumSharp never raises it: it has no lapack_lite module, and its LAPACK seam (TensorEngine.Blas) prepares every argument itself. The class exists so a port of code that raises or catches it compiles and behaves as in Python.

Constructors

LapackError()

Creates the error with Python's text for a bare raise LapackError: an empty Message, as str(LapackError()) is ''.

public LapackError()

LapackError(string)

Creates the error with NumPy's (or the port's) message.

public LapackError(string message)

Parameters

message string

The text, verbatim (Parameter a is not contiguous in lapack_lite.dgelsd).

LapackError(string, Exception)

Creates the error with a message and the exception that caused it: Python's raise LapackError(message) from innerException, the cause kept in InnerException.

public LapackError(string message, Exception innerException)

Parameters

message string

The text, verbatim.

innerException Exception

The exception that led to this one, or null for none.