GAMatrixReal_Impl Struct Reference

#include <GA_matrix.h>

Data Fields

double ** elts
int rows
int cols
int refs

Detailed Description

A matrix of real numbers (implementation).

This type holds the elements of a two-dimensional matrix of real numbers. 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_real(). To release a reference to a matrix, use GA_matrix_destroy_real(). 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


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_real(). If this function is used, an error message will be sent if an index is out of range.

Field Documentation

double** GAMatrixReal_Impl::elts

Elements of the matrix.

int GAMatrixReal_Impl::rows

Number of rows.

int GAMatrixReal_Impl::cols

Number of columns.

int GAMatrixReal_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