GAMatrixInt_Impl Struct Reference

#include <GA_matrix.h>


Data Fields

int ** elts
int rows
int cols
int refs


Detailed Description

A matrix of integers (implementation).

This type holds the elements of a two-dimensional matrix of integers. Memory for this type is managed automatically if the interface functions from the API (as defined in GA_matrix.h) are used. To create a new matrix, use one of the GA_matrix_create* functions. To reference a matrix, use GA_matrix_ref_int(). To release a reference to a matrix, use GA_matrix_destroy_int(). The memory for the matrix instance and the matrix elements will be freed if the reference count reaches zero.

Matrix elements may be accessed directly by dereferencing the elts pointer, for example

m->elts[i][j]

to access the element with index (i, j) of the matrix m. The size of the matrix is stored in the rows and cols members of the type. It is also possible to do a checked access using GA_matrix_get_elt_int(). If this function is used, an error message will be sent if an index is out of range.


Field Documentation

int** GAMatrixInt_Impl::elts

Elements of the matrix.

int GAMatrixInt_Impl::rows

Number of rows.

int GAMatrixInt_Impl::cols

Number of columns.

int GAMatrixInt_Impl::refs

Reference count.


The documentation for this struct was generated from the following file:
Generated on Thu Aug 16 15:28:42 2007 for Graphalignment(Rpackage) by  doxygen 1.5.1