nr-matrix-fns.cpp revision 4cb9ed4c3d183554e888e636844f8e3c2e666c40
#include <libnr/nr-matrix-fns.h>
#include <cstdio>
namespace NR {
0, 0);
/* def quadratic_form((a, b), (c, d)):
return ((a*a + c*c), a*c+b*d),(a*c+b*d, (b*b + d*d)) */
}
double const B = -m[0] - m[3];
double const C = m[0]*m[3] - m[1]*m[2];
double const center = -B/2.0;
for (int i = 0; i < 2; i++) {
}
}
m[2], m[3],
0, 0);
return ret;
}
}
{
}
} // namespace NR
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :