16 #error no need to expose this header to Swig
20 #ifndef BORNAGAIN_CORE_EXPORT_PYFMT_H
21 #define BORNAGAIN_CORE_EXPORT_PYFMT_H
36 std::string
printNm(
double input);
40 std::string
printValue(
double value,
const std::string& units =
"");
43 bool isSquare(
double length1,
double length2,
double angle);
44 bool isHexagonal(
double length1,
double length2,
double angle);
49 std::string
indent(
size_t width = 4u);
Defines basic vectors in Z^3, R^3, C^3.
Utility functions for writing Python code snippets.
std::string printNm(double input)
std::string printNm2(double input)
std::string printDegrees(double input)
bool isSquare(double length1, double length2, double angle)
std::string printDouble(double input)
std::string printKvector(const kvector_t value)
std::string printScientificDouble(double input)
std::string printBool(double value)
std::string printImportedSymbols(const std::string &code)
std::string printLightDouble(double input)
prints double as an integer, if possible within standard accuracy
std::string printString(const std::string &value)
std::string printInt(int value)
std::string indent(size_t width)
Returns a string of blanks with given width.
bool isHexagonal(double length1, double length2, double angle)
std::string printValue(double value, const std::string &units)