Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

vmblock.cpp File Reference

#include <malloc.h>
#include <basis.h>
#include <vmblock.h>

Include dependency graph for vmblock.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define VMALLOC   (vmltyp *)malloc(sizeof(vmltyp))
#define LISTE   ((vmltyp *)vmblock)
#define MAGIC   410
#define matmalloc(mat, m, n, typ, umat)

Typedefs

typedef VML vmltyp

Functions

void * vminit (void)
void matfree (void **matrix, size_t m)
void pmatfree (void ***matrix, size_t m, size_t n)
REAL *** pmatmalloc (size_t m, size_t n)
void * vmalloc (void *vmblock, int typ, size_t zeilen, size_t spalten)
bool vmcomplete (void *vmblock)
void vmfree (void *vmblock)


Define Documentation

#define LISTE   ((vmltyp *)vmblock)
 

Definition at line 142 of file vmblock.cpp.

Referenced by vmalloc(), vmcomplete(), and vmfree().

#define MAGIC   410
 

Definition at line 144 of file vmblock.cpp.

#define matmalloc mat,
m,
n,
typ,
umat   ) 
 

Value:

/*.IX{matmalloc}*/                                                     \
                                                                       \
{                                                                      \
  size_t j,                               /* current row index     */  \
         k;                               /* elements in row j     */  \
                                                                       \
  if ((mat = (typ **)calloc((m), sizeof(typ *))) != NULL)              \
    for (j = 0; j < (m); j++)                                          \
    {                                                                  \
      k = (umat) ? (j + 1) : (n);                                      \
      if ((((typ **)mat)[j] = (typ *)calloc(k, sizeof(typ))) == NULL)  \
      {                                                                \
        matfree((void **)(mat), j);                                    \
        mat = NULL;                                                    \
        break;                                                         \
      }                                                                \
    }                                                                  \
}

Definition at line 260 of file vmblock.cpp.

Referenced by pmatmalloc(), and vmalloc().

#define VMALLOC   (vmltyp *)malloc(sizeof(vmltyp))
 

Definition at line 136 of file vmblock.cpp.


Typedef Documentation

typedef struct VML vmltyp
 

Referenced by vmalloc(), vmfree(), and vminit().


Function Documentation

void matfree void **  matrix,
size_t  m
[static]
 

Definition at line 197 of file vmblock.cpp.

Referenced by pmatfree(), and vmfree().

void pmatfree void ***  matrix,
size_t  m,
size_t  n
[static]
 

Definition at line 314 of file vmblock.cpp.

References matfree().

Referenced by pmatmalloc(), and vmfree().

REAL*** pmatmalloc size_t  m,
size_t  n
[static]
 

Definition at line 343 of file vmblock.cpp.

References matmalloc, pmatfree(), and REAL.

Referenced by vmalloc().

void* vmalloc void *  vmblock,
int  typ,
size_t  zeilen,
size_t  spalten
 

Definition at line 390 of file vmblock.cpp.

References IMATRIX, LISTE, mat4x4, matmalloc, MATRIX, MMATRIX, pmatmalloc(), PMATRIX, REAL, UMATRIX, VEKTOR, vmltyp, and VVEKTOR.

Referenced by convertMatrix(), convertVector(), eigen(), and eigenValues().

bool vmcomplete void *  vmblock  ) 
 

Definition at line 494 of file vmblock.cpp.

References FALSE, and LISTE.

Referenced by eigen().

void vmfree void *  vmblock  ) 
 

Definition at line 517 of file vmblock.cpp.

References IMATRIX, LISTE, matfree(), MATRIX, MMATRIX, pmatfree(), PMATRIX, UMATRIX, VEKTOR, vmltyp, and VVEKTOR.

Referenced by eigen().

void* vminit void   ) 
 

Definition at line 155 of file vmblock.cpp.

References vmltyp.

Referenced by convertMatrix(), convertVector(), eigen(), and eigenValues().


Generated on Wed Sep 5 12:54:36 2007 for DSACSS Operational Code by  doxygen 1.3.9.1