Single precision fixed size matrices (original) (raw)

next up previous contents
Next: General size matrices and Up: Fixed size matrices Previous: Conversion from general to Contents

Single precision fixed size matrices

  #include <gandalf/linalg/3matrixf.h>

There is an identical set of functions for handling single precision floating point matrices, the names of which are obtained by replacing"gan_mat34_..." in the above functions with "gan_mat34f_...". For example, to add two single precision $3\times 4$ matrices use

  Gan_Matrix34_f m34A, m34B, m34C;

  /* ... fill m34A and m34B ... */
  gan_mat34f_add_q ( &m34A, &m34B, &m34C );

2006-03-17