#include <GA_matrix.h>
Data Fields | |
int ** | elts |
int | rows |
int | cols |
int | refs |
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.
int** GAMatrixInt_Impl::elts |
Elements of the matrix.
Number of rows.
Number of columns.
Reference count.