Mercurial > octave-nkf
view libgui/link-deps.mk @ 18467:c5a101de2d88
Allow pinv to work on Diagonal Matrices with a tolerance (bug #41546).
* pinv.cc (Fpinv): Validate tolerance argument and pass it through to
pseudo_inverse().
CDiagMatrix.h, dDiagMatrix.h, fCDiagMatrix.h, fDiagMatrix.h: Redefine
prototype for pseudo_inverse to accept a single argument for tolerance.
* CDiagMatrix.cc (pseudo_inverse), dDiagMatrix.cc(pseudo_inverse),
fCDiagMatrix.cc(pseudo_inverse), fDiagMatrix.cc(pseudo_inverse):
Use std::abs(elem) to get magnitude of element and only invert if
value is greater than tolerance.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 15 Feb 2014 14:42:07 -0800 |
parents | 5f031158c693 |
children | 39844e6ccf13 |
line wrap: on
line source
include $(top_srcdir)/libinterp/link-deps.mk if AMCOND_ENABLE_DYNAMIC_LINKING LIBOCTGUI_LINK_DEPS = else LIBOCTGUI_LINK_DEPS = $(DLDFCN_LIBS) endif LIBOCTGUI_LINK_DEPS += \ @QT_LIBS@ LIBOCTGUI_LINK_OPTS = \ @QT_LDFLAGS@ if AMCOND_LINK_ALL_DEPS LIBOCTGUI_LINK_DEPS += $(LIBOCTINTERP_LINK_DEPS) LIBOCTGUI_LINK_OPTS += $(LIBOCTINTERP_LINK_OPTS) OCTAVE_GUI_LINK_DEPS = $(LIBOCTGUI_LINK_DEPS) OCTAVE_GUI_LINK_OPTS = $(LIBOCTGUI_LINK_OPTS) endif