MCPcopy Create free account
hub / github.com/bgrimstad/splinter / checkInput

Function checkInput

include/function.h:77–80  ·  view source on GitHub ↗

* Check input */

Source from the content-addressed store, hash-verified

75 * Check input
76 */
77 void checkInput(DenseVector x) const {
78 if (x.size() != numVariables)
79 throw Exception("Function::checkInput: Wrong dimension on evaluation point x.");
80 }
81
82 /**
83 * Returns the central difference at x

Callers 3

evalMethod · 0.85
evalJacobianMethod · 0.85
evalHessianMethod · 0.85

Calls 1

ExceptionClass · 0.85

Tested by

no test coverage detected