Vector Database Update


To ng-spice-devel@ieee.ing.uniroma1.it
From Paolo Nenzi <pnenzi@ieee.ing.uniroma1.it>
Date Mon, 10 Jan 2000 19:14:25 +0100 (CET)
Delivered-To mailing list ng-spice-devel@ieee.ing.uniroma1.it
Mailing-List contact ng-spice-devel-help@ieee.ing.uniroma1.it; run by ezmlm
Reply-To ng-spice-devel@ieee.ing.uniroma1.it

Hi all,

I am (slowly) working on the vector database for the free spice (the gpl
one). The subsystem (module) will use GNU Scientific Library for as base
library and can work on real and complex (even long double) numbers. I am
planning to do some "assert work" using nana library, but in a later
stage. The vector database module will use, in the future threads (I
hope).

The new sample structure is:


typedef struct sample {
    char *name;                 /* Name of this sample */
    char *units;                /* Physical unit of measure in SI */
    VDB_data_t data_type;       /* Type of data */
    VDB_sample_t sample_type;   /* Type of this sample */
    
    union {
       gsl_vector_complex     *complex; /* complex vector of doubles */       
       gsl_vector_complex_long_double *lcomplex; 
                     /* complex vector of long doubles */
       gsl_vector             *real;   /* real vector of doubles */
       gsl_vector_long_double *lreal;  /* real vector od long doubles */
    } data;
    
    struct sample *next;          /* Pointer to a next sample for linked
lists */ 
} VDBsample;

This structure is flexible and small. Arno, I have restored the old spice
dvec types in the sample_type field. If you look to fteconst.h you will
see the values.


Paolo


Partial thread listing: