We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instead of covariant matrices stored as std::array<float,6> etc, we may want to use a component such as:
std::array<float,6>
eicd::Cov3f: Members: - float xx - float yy - float zz - float xy - float xz - float yz ExtraCode: declaration: " Cov3f() : xx{0}, yy{0}, zz{0}, xy{0}, xz{0}, yz{0} {}\n Cov3f(double vx, double vy, double vz, double vxy = 0, double vxz = 0, double vyz = 0)\n : xx{static_cast<float>(vx)}, yy{static_cast<float>(vy)}, zz{static_cast<float>(vz)},\n xy{static_cast<float>(vxy)}, xz{static_cast<float>(vxz)}, yz{static_cast<float>(vyz)} {}\n float operator()(unsigned i, unsigned j) const {\n // diagonal\n if (i == j) {\n return *(&xx + i);\n }\n // off-diagonal\n // we have as options (0, 1), (0, 2) and (1, 2) (and mirrored)\n // note that, starting from xy, we find the correct element at (i+j-1)\n return *(&xy + i + j - 1);\n }\n "
(Our extra utilities are in Vector3f.h, keeping them outside of the data model)
Vector3f.h
The text was updated successfully, but these errors were encountered:
Fixed with #287
Sorry, something went wrong.
No branches or pull requests
Instead of covariant matrices stored as
std::array<float,6>
etc, we may want to use a component such as:(Our extra utilities are in
Vector3f.h
, keeping them outside of the data model)The text was updated successfully, but these errors were encountered: