matrix.c File Reference

#include "magick/studio.h"
#include "magick/matrix.h"
#include "magick/memory_.h"
#include "magick/utility.h"
Include dependency graph for matrix.c:

Go to the source code of this file.

Defines

#define GaussJordanSwap(x, y)

Functions

MagickExport double ** AcquireMagickMatrix (const unsigned long nptrs, const unsigned long size)
MagickExport MagickBooleanType GaussJordanElimination (double **matrix, double **vectors, const unsigned long rank, const unsigned long nvecs)
MagickExport void LeastSquaresAddTerms (double **matrix, double **vectors, const double *terms, const double *results, const unsigned long rank, const unsigned long nvecs)
MagickExport double ** RelinquishMagickMatrix (double **matrix, const unsigned long nptrs)

Define Documentation

#define GaussJordanSwap ( x,
 ) 
Value:
{ \
  if ((x) != (y)) \
    { \
      (x)+=(y); \
      (y)=(x)-(y); \
      (x)=(x)-(y); \
    } \
}

Referenced by GaussJordanElimination().


Function Documentation

MagickExport double** AcquireMagickMatrix ( const unsigned long  nptrs,
const unsigned long  size 
)

Definition at line 79 of file matrix.c.

References AcquireQuantumMemory(), and RelinquishMagickMemory().

Referenced by GenerateCoefficients().

MagickExport MagickBooleanType GaussJordanElimination ( double **  matrix,
double **  vectors,
const unsigned long  rank,
const unsigned long  nvecs 
)
MagickExport void LeastSquaresAddTerms ( double **  matrix,
double **  vectors,
const double *  terms,
const double *  results,
const unsigned long  rank,
const unsigned long  nvecs 
)

Definition at line 359 of file matrix.c.

Referenced by GenerateCoefficients().

MagickExport double** RelinquishMagickMatrix ( double **  matrix,
const unsigned long  nptrs 
)

Definition at line 403 of file matrix.c.

References RelinquishMagickMemory().

Referenced by GenerateCoefficients().


Generated on 19 Nov 2009 for MagickCore by  doxygen 1.6.1