7 template<
typename Type>
int test_4x4(
void);
15 ret = test_4x4<float>();
16 if (ret != 0)
return ret;
18 ret = test_4x4<double>();
19 if (ret != 0)
return ret;
22 if (ret != 0)
return ret;
25 if (ret != 0)
return ret;
32 float data[12] = {20.f, -10.f, -13.f,
39 float b_data[4] = {2.0f, 3.0f, 4.0f, 5.0f};
42 float x_check_data[3] = {-0.69168233f,
55 template<
typename Type>
58 const Type
data[16] = { 20.f, -10.f, -13.f, 21.f,
59 17.f, 16.f, -18.f, -14.f,
60 0.7f, -0.8f, 0.9f, -0.5f,
61 -1.f, -1.1f, -1.2f, -1.3f
65 Type b_data[4] = {2.0f, 3.0f, 4.0f, 5.0f};
68 Type x_check_data[4] = { 0.97893433f,
83 float data[4] = {0.0f, 0.0f, 0.0f, 0.0f};
86 float b_data[2] = {1.0f, 1.0f};
90 float x_check_data[2] = {0.0f, 0.0f};
bool isEqual(const Matrix< Type, M, N > &x, const Matrix< Type, M, N > &y, const Type eps=1e-4f)
int test_4x4_type_double(void)
Vector< Type, N > solve(const Vector< Type, M > &b)
Solve Ax=b for x.