next up previous contents
Next: The Image Package Up: General size matrices and Previous: Accumulated symmetric matrix eigendecomposition   Contents

Single precision general size matrices & vectors

Note that for the routines to fill a matrix/vector with values, described in Sections and, the values provided in the single precision case must actually still be double precision, because C has the restriction that floating point variable argument list values must be double precision. So for instance, this won't work:
      Gan_Vector_f vx;

      gan_vecf_form ( &vx, 6 );
      gan_vecf_fill_va ( &vx, 6, 1.0F, 2.0F, 3.0F, 4.0F, 5.0F, 6.0F ); /* WRONG */
Instead use
      gan_vecf_fill_va ( &vx, 6, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ); /* RIGHT! */
If necessary use a (double) cast in front of each value.