Forced function instantiation for coverage testing.

This commit is contained in:
jgoppert 2015-11-12 10:07:09 -05:00
parent 410bbc4c71
commit a334cecfa7
4 changed files with 20 additions and 3 deletions

View File

@ -5,7 +5,15 @@
using namespace matrix;
template class Vector<float, 5>;
template int kalman_correct<float, 6, 5>(
const SquareMatrix<float, 6> & P,
const Matrix<float, 5, 6> & C,
const SquareMatrix<float, 5> & R,
const Vector<float, 5> &r,
Vector<float, 6> & dx,
SquareMatrix<float, 6> & dP,
float & beta
);
int main()
{

View File

@ -5,6 +5,14 @@
using namespace matrix;
// instantiate template to ensure coverage check
template int integrate_rk4<float, 6>(
Vector<float, 6> (*f)(float, Vector<float, 6>),
Vector<float, 6> & y,
float & t,
float h
);
Vector<float, 6> f(float t, Vector<float, 6> y);
Vector<float, 6> f(float t, Vector<float, 6> y) {

View File

@ -5,7 +5,7 @@
using namespace matrix;
template class Vector<float, 3>;
template class Vector<float, 2>;
int main()
{