GithubHelp home page GithubHelp logo

cogsys-tuebingen / cslibs_math Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 2.0 690 KB

This library contains different math utility classes for e.g. multidimensional statistics and linear algebra.

License: BSD 3-Clause "New" or "Revised" License

CMake 2.95% C++ 96.87% Python 0.18%

cslibs_math's People

Contributors

c-schulz avatar daejiv avatar doge-of-the-day avatar lisilin013 avatar

Watchers

 avatar  avatar  avatar  avatar

cslibs_math's Issues

cslibs_math build error

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

updateEigenvalues(); return abs ? eigen_values_.cwiseAbs() : eigen_values_;

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!

does not compile with clang

...
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)

Support for the error "array must be initialized with a brace-enclosed initializer"

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 ?

build error

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".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.