Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

neilisaac / torch   python

Repository URL to install this package:

Version: 1.8.0 

/ include / TH / THLapack.h

#ifndef TH_LAPACK_INC
#define TH_LAPACK_INC

#include <TH/THGeneral.h>

#define THLapack_(NAME) TH_CONCAT_4(TH,Real,Lapack_,NAME)

#define THLapackCheck(fmt, func, info , ...)                                                \
if (info < 0) {                                                                                                                \
  THError("Lapack Error in %s : Illegal Argument %d", func, -info); \
} else if(info > 0) {                                                                                                \
  THError(fmt, func, info, ##__VA_ARGS__);                                                        \
}                                                                                                                                        \

#define THLapackCheckWithCleanup(fmt, cleanup, func, info , ...)    \
if (info < 0) {                                                     \
  cleanup                                                           \
  THError("Lapack Error in %s : Illegal Argument %d", func, -info); \
} else if(info > 0) {                                               \
  cleanup                                                           \
  THError(fmt, func, info, ##__VA_ARGS__);                          \
}

#include <TH/generic/THLapack.h>
#include <TH/THGenerateAllTypes.h>

#endif