.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "cepMatrix" "3" "26 November 2002" "" ""
.SH NAME
cepMatrix \- Provides a matrix class template data container for all mathematical operations.
.SH SYNOPSIS
.nf
The follwing example show how to create a cepMatrix.
Declaring a NULL matrix:-
cepMatrix matrix()
Declaring a 2D matrix:-
cepMatrix matrix(const int & rows, const int & cols)
rows:- the number of rows in the matrix
cols:- the number of colums in the matrix
Declaring a 3D matrix:-
cepMatrix matrix(const int & rows, const int & cols, const int & tabs)
rows:- the number of rows in the matrix
cols:- the number of colums in the matrix
tabs:- the number of tables in the matrix
.fi
.SH "DESCRIPTION"
.PP
An implementation of the cepMatrix template class
data container.
const cepMatrix & operator+= (const cepMatrix &B)
Calculates A+B.
This function can not be used with 3D matricies.
B:- the matrix to be added to the current matrix object
const cepMatrix & operator-= (const cepMatrix &B)
Calculates A-B.
This function can not be used with 3D matricies.
B:- the matrix to be subtracted to the current matrix object
const cepMatrix & operator*= (const cepMatrix &B)
Calculates A*B.
B:- the matrix to be multiplied with the current matrix object
const cepMatrix & operator*= (const T &scalar)
Calculates c*A.
This function can not be used with 3D matricies.
c:- the scalar value that the current matrix object is to be multiplied by
const cepMatrix & operator= (const cepMatrix &B)
Sets A=B.
B:- the matrix that the current matrix object is to be set to
bool operator== (const cepMatrix &B)
Compares A to B and returns true if A is equal to B, otherwise false is returned.
This function can not be used with 3D matricies.
B:- the matrix to be compared to the current matrix object
bool operator!= (const cepMatrix &B)
Compares A to B and returns true if A is not equal B, otherwise false is returned.
This function can not be used with 3D matricies.
B:- the matrix to be compared to the current matrix object
bool isDiagonal ()
Determies whether this matrix object is a strictly Diagonal matrix.
This fuction returns true if the matrix is diagonal, else false is returned.
This function can not be used with 3D matricies.
const T getMaxValue(const int & col)
Returns the largest value in a given coloum.
col:- the coloum to be queried
const T getMinValue(const int & col)
Returns the smallest value in a given coloum
col:- the coloum to be queried
const cepMatrix & resize(const int & newRows)
Returns the current matrix which is resized by newRows number of rows. This
function can only make the number of rows in the matrix larger and can not be
used on 3D matricies
newRows:- the new number of rows the resized matrix is to have
const T & getValue (const int & row, const int & col)
Returns the value of the matrix the specified point.
This function can not be used with 3D matricies.
row:- the row number of the value
col:- the colum number of the value
void setValue (const int & row, const int & col, const T & value)
Sets the value of the matrix at the specified point
This function can not be used with 3D matricies.
row:- the row number where the value is to be inserted
col:- the colum number where the value is to be inserted
value:- the value of the given matrix point
const cepMatrix & resize(int & newRows)
Returns the current matrix which is resized by newRows number of rows. This function
can only make the number of rows in the matrix larger.
newRow:- The new number of rows in the matrix
const int & getNumRows ()
Gets the number of rows in the matrix.
const int & getNumCols ()
Gets the number of colums in the matrix.
const T& getValue (const int & row, const int & col, const int & tab)/command>
Gets the value of a 3D matrix at a specfied point
This function can not be used with 2D matricies.
row:- the row number of the value
col:- the colum number of the value
tab:- the table number of the value
void setValue (const int & row, const int & col, const int & tab, const T & value)
Sets the value of the 3D matrix at the specified point.
This function can not be used with 2D matricies.
row:- the row number where the value is to be inserted
col:- the colum number where the value is to be inserted
tab:- the table number where the value is to be inserted
value:- the value of the given matrix point
const int & getNumTables()
Gets the number of tables in the matrix.
This function can not be used with 2D matricies.
const bool is3D()
Returns true if the matrix is a 3D matrix, else returns false.
cepError getError()
Returns any error that may have occored whilst carrying out an of the operations
in this class. The error is returned as a cepError object.
SEEALSOcepError
.SH "VERSION"
.PP
This documentation was generated for the \fBGeodetic Data Manipulation System\fR 0.1 by \fBautodocbook\fR (http://www.stillhq.com).
.SH "AUTHOR"
.PP
The \fBGeodetic Data Manipulation System\fR is under development by Michael Still (mikal@stillhq.com), Daniel Fernandez, Kristy Van Der Vlist, Blake Swadling, and Nick Wheatstone. All code is Copyright 2002 Michael Still, Daniel Fernandez, Kristy Van Der Vlist, Blake Swadling and Nick Wheatstone, and is released under the GNU GPL. Code submissions are welcomed. Contact Michael at the address above if you have something you would like to contribute.
.SH "BUGS"
.PP
There are no known bugs in the \fBGeodetic Data Manipulation System\fR. If you find one, please contact mikal@stillhq.com and let me know.