manpagez: man pages & more
info mathgl_en
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.2 Data constructor

MGL command: new DAT [nx=1 'eq']
MGL command: new DAT nx ny ['eq']
MGL command: new DAT nx ny nz ['eq']
Constructor on mglData: mglData (int mx=1, int my=1, int mz=1)
C function: HMDT mgl_create_data ()
C function: HMDT mgl_create_data_size (int mx, int my, int mz)

Default constructor. Allocates the memory for data array and initializes it by zero. If string eq is specified then data will be filled by corresponding formula as in fill function.

MGL command: copy DAT dat2 ['eq'='']
MGL command: copy DAT val
Constructor on mglData: mglData (const mglData &dat2)
Constructor on mglData: mglData (const mglDataA *dat2)
Constructor on mglData: mglData (int size, const float *dat2)
Constructor on mglData: mglData (int size, int cols, const float *dat2)
Constructor on mglData: mglData (int size, const double *dat2)
Constructor on mglData: mglData (int size, int cols, const double *dat2)
Constructor on mglData: mglData (const double *dat2, int size)
Constructor on mglData: mglData (const double *dat2, int size, int cols)

Copy constructor. Allocates the memory for data array and copy values from other array. At this, if parameter eq is specified then the data will be modified by corresponding formula similarly to fill function.

MGL command: read DAT 'fname'
Constructor on mglData: mglData (const char *fname)
C function: HMDT mgl_create_data_file (const char *fname)

Reads data from tab-separated text file with auto determining sizes of the data.

MGL command: delete dat
Destructor on mglData: ~mglData ()
C function: void mgl_delete_data (HMDT dat)

Deletes the instance of class mglData.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on April 13, 2012 using texi2html 5.0.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.