PLplot  5.15.0
tclMatrix.h File Reference
#include "plplot.h"
#include <tcl.h>

Go to the source code of this file.

Classes

struct  tclMatrix
 
struct  tclMatrixXtnsnDescr
 

Macros

#define MAX_ARRAY_DIM   3
 
#define I3D(i, j, k)   k + matPtr->n[2] * ( I2D( i, j ) )
 
#define I2D(i, j)   j + matPtr->n[1] * ( I1D( i ) )
 
#define I1D(i)   i
 

Typedefs

typedef PLFLT Mat_float
 
typedef int Mat_int
 
typedef int(* tclMatrixXtnsnProc) (tclMatrix *pm, Tcl_Interp *interp, int argc, const char *argv[])
 
typedef struct tclMatrixXtnsnDescr tclMatrixXtnsnDescr
 

Enumerations

enum  { TYPE_FLOAT, TYPE_INT }
 

Functions

int PLDLLIMPEXP_TCLMAT Matrix_Init (Tcl_Interp *)
 
int Tcl_MatrixCmd (ClientData clientData, Tcl_Interp *interp, int argc, const char **argv)
 
tclMatrix PLDLLIMPEXP_TCLMATTcl_GetMatrixPtr (Tcl_Interp *interp, const char *matName)
 
int PLDLLIMPEXP_TCLMAT Tcl_MatrixInstallXtnsn (const char *cmd, tclMatrixXtnsnProc proc)
 

Macro Definition Documentation

◆ I1D

#define I1D (   i)    i

Definition at line 58 of file tclMatrix.h.

◆ I2D

#define I2D (   i,
 
)    j + matPtr->n[1] * ( I1D( i ) )

Definition at line 57 of file tclMatrix.h.

◆ I3D

#define I3D (   i,
  j,
 
)    k + matPtr->n[2] * ( I2D( i, j ) )

Definition at line 56 of file tclMatrix.h.

◆ MAX_ARRAY_DIM

#define MAX_ARRAY_DIM   3

Definition at line 52 of file tclMatrix.h.

Typedef Documentation

◆ Mat_float

typedef PLFLT Mat_float

Definition at line 38 of file tclMatrix.h.

◆ Mat_int

typedef int Mat_int

Definition at line 43 of file tclMatrix.h.

◆ tclMatrixXtnsnDescr

◆ tclMatrixXtnsnProc

typedef int( * tclMatrixXtnsnProc) (tclMatrix *pm, Tcl_Interp *interp, int argc, const char *argv[])

Definition at line 356 of file tclMatrix.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TYPE_FLOAT 
TYPE_INT 

Definition at line 46 of file tclMatrix.h.

Function Documentation

◆ Matrix_Init()

int PLDLLIMPEXP_TCLMAT Matrix_Init ( Tcl_Interp *  )

Definition at line 27 of file matrixInit.c.

◆ Tcl_GetMatrixPtr()

tclMatrix PLDLLIMPEXP_TCLMAT* Tcl_GetMatrixPtr ( Tcl_Interp *  interp,
const char *  matName 
)

Definition at line 424 of file tclMatrix.c.

◆ Tcl_MatrixCmd()

int Tcl_MatrixCmd ( ClientData  clientData,
Tcl_Interp *  interp,
int  argc,
const char **  argv 
)

◆ Tcl_MatrixInstallXtnsn()

int PLDLLIMPEXP_TCLMAT Tcl_MatrixInstallXtnsn ( const char *  cmd,
tclMatrixXtnsnProc  proc 
)

Definition at line 464 of file tclMatrix.c.