8 #ifndef btModifiedGramSchmidt_h
9 #define btModifiedGramSchmidt_h
30 for (
int i = 0; i <
m_in.
size(); ++i)
35 for (
int j = 0; j < i; ++j)
49 printf(
"=======inputs=========\n");
54 printf(
"=======output=========\n");
68 printf(
"vec[%d] is not unit, norm squared = %f\n", i,
m_out[i].
dot(
m_out[j]));
75 printf(
"vec[%d] and vec[%d] is not orthogonal, dot product = %f\n", i, j,
m_out[i].
dot(
m_out[j]));
ATTR_WARN_UNUSED_RESULT const BMVert * v
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
SIMD_FORCE_INLINE int size() const
return the number of elements in the array
SIMD_FORCE_INLINE void resize(int newsize, const T &fillData=T())
btAlignedObjectArray< TV > m_in
btModifiedGramSchmidt(const btAlignedObjectArray< TV > &vecs)
btAlignedObjectArray< TV > m_out
T dot(const vec_base< T, Size > &a, const vec_base< T, Size > &b)