cogsys-tuebingen / cslibs_math Goto Github PK
View Code? Open in Web Editor NEWThis library contains different math utility classes for e.g. multidimensional statistics and linear algebra.
License: BSD 3-Clause "New" or "Revised" License
This library contains different math utility classes for e.g. multidimensional statistics and linear algebra.
License: BSD 3-Clause "New" or "Revised" License
Dear authors,
Thanks for your opensource code, here when I build this package, the terminal gives me some error like this:
Error showed in terminal is
cslibs_math/statistics/stable_distribution.hpp:241:80: error: operands to ?: have different types ‘const Eigen::CwiseUnaryOp<Eigen::internal::scalar_abs_op, const Eigen::Matrix<double, 3, 1> >’ and ‘cslibs_math::statistics::StableDistribution<double, 3ul, 3ul>::eigen_values_t {aka Eigen::Matrix<double, 3, 1>}’
return (dirty_eigenvalues_ && valid()) ? update_return_eigen() : (abs ? eigen_values_.cwiseAbs() : eigen_values_);
The reference code is
I notice that the c++ operator ? a : b , a and b must be the same type, so I think this code confused me.
Looking forward to your reply!
Thanks again!
...
In file included from /home/workspace/src/cslibs_math/cslibs_math/test/hausdorff.cpp:1:
In file included from /home/workspace/src/cslibs_math/cslibs_math/include/cslibs_math/linear/hausdorff.hpp:5:
/home/workspace/src/cslibs_math/cslibs_math/include/cslibs_math/statistics/distribution.hpp:28:27: error: constexpr variable 'sqrt_2_M_PI' must be initialized by a constant expression
static constexpr double sqrt_2_M_PI = std::sqrt(2 * M_PI);
...
The reason is that std::sqrt is not defined as constexpr according to C++ standard (gcc is too permissive here)
Respected developers of the package
While building the package I encountered the error "array must be initialized with a brace-enclosed initializer, array must be initialized with a brace-enclosed initializer error_t error_{0, 0}; "
In the file
cslibs_math/cslibs_math_3d/include/cslibs_math_3d/algorithms/bresenham.hpp:130:22:
Can you address this issue and let me know how this can be solved.. Can it be compiler issue ?
I could not build the library, I keep getting the errors:
[...]
CMake Error at /home/jaan/workspace/src/cslibs_math/cslibs_math_2d/CMakeLists.txt:30 (cslibs_math_add_unit_test_gtest):
Unknown CMake command "cslibs_math_add_unit_test_gtest".
[...]
CMake Error at /home/jaan/workspace/src/cslibs_math/cslibs_math_3d/CMakeLists.txt:32 (cslibs_math_add_unit_test_gtest):
Unknown CMake command "cslibs_math_add_unit_test_gtest".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.