MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / compute_batch_symmetric

Method compute_batch_symmetric

tools/EigenUtils/EigenSolver.cpp:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14void EigenSolver::compute_batch_symmetric(size_t dim, VectorF matrices) {
15 if (dim == 2) {
16 compute_batch_symmetric_2x2(matrices);
17 } else if (dim == 3) {
18 compute_batch_symmetric_3x3(matrices);
19 } else {
20 std::stringstream err_msg;
21 err_msg << "EigenSolver does not support " << dim << "D matrix yet.";
22 throw NotImplementedError(err_msg.str());
23 }
24}
25
26void EigenSolver::compute_batch_symmetric_2x2(const VectorF& matrices) {
27 const size_t dim = 2;

Callers 1

TEST_FFunction · 0.80

Calls 2

NotImplementedErrorClass · 0.85
strMethod · 0.45

Tested by 1

TEST_FFunction · 0.64