First commit of Polymath
This commit is contained in:
1
src/LapackAdapters.cpp
Normal file
1
src/LapackAdapters.cpp
Normal file
@@ -0,0 +1 @@
|
||||
#include "internal/LapackAdapters.h"
|
29
src/Matrix.cpp
Normal file
29
src/Matrix.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* File: Matrix.cpp
|
||||
* Author: Samer Afach
|
||||
*
|
||||
* Created on 01. Oktober 2016, 17:12
|
||||
*/
|
||||
|
||||
#include "internal/Matrix.h"
|
||||
|
||||
namespace Poly
|
||||
{
|
||||
std::string ComplexUnit = "j";
|
||||
std::string _lapack_eigens_exception_illegal_value(int info)
|
||||
{
|
||||
return std::string("Unable to compute eigenvalues. Value " + std::to_string(-info) + " had an illegal value.");
|
||||
}
|
||||
std::string _lapack_eigens_exception_converge_error(int info)
|
||||
{
|
||||
return std::string("Unable to compute eigenvalues. " + std::to_string(info) + " elements of an intermediate tridiagonal did not converge to zero.");
|
||||
}
|
||||
std::string _lapack_unsupported_type()
|
||||
{
|
||||
return std::string("LAPACK does not support the type you selected. Lapack only supports doubles, floats, complex<double> and complex<float>. If you haven't chosen these types, please contact the library writer about this error.");
|
||||
}
|
||||
std::string _unsupported_type(const std::string& function_name)
|
||||
{
|
||||
return std::string("The type you is not supported for the function " + function_name + ".");
|
||||
}
|
||||
}
|
1
src/Polymath.cpp
Normal file
1
src/Polymath.cpp
Normal file
@@ -0,0 +1 @@
|
||||
#include "Polymath.h"
|
1
src/StdAdapters.cpp
Normal file
1
src/StdAdapters.cpp
Normal file
@@ -0,0 +1 @@
|
||||
#include "StdAdapters.h"
|
Reference in New Issue
Block a user