MCPcopy Create free account
hub / github.com/ceres-solver/ceres-solver / IsArrayValid

Function IsArrayValid

internal/ceres/array_utils.cc:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42namespace ceres::internal {
43
44bool IsArrayValid(const int64_t size, const double* x) {
45 if (x != nullptr) {
46 for (int64_t i = 0; i < size; ++i) {
47 if (!std::isfinite(x[i]) || (x[i] == kImpossibleValue)) {
48 return false;
49 }
50 }
51 }
52 return true;
53}
54
55int64_t FindInvalidValue(const int64_t size, const double* x) {
56 if (x == nullptr) {

Callers 7

IsEvaluationValidFunction · 0.85
TESTFunction · 0.85
ComputeStepMethod · 0.85
TESTFunction · 0.85
parameter_block.hFile · 0.85
TESTFunction · 0.85

Calls 1

isfiniteFunction · 0.85

Tested by 3

TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68