CMatrix Class

# CMatrix Class Reference

[CADIHash.h Index] [CADIHash.h Hierarchy]

a simple and fast matrix class More...

`#include <../libInvertedFile/include/CMatrix.h>`

Inherits: vector>

## Public Members

- CMatrix (int inSize,float inDiagonal=1)
- void getDiagonal (vector<float>& outDiagonal)
- float getOffDiagonalSum ()
- void symmetrify ()
- void transpose ()
- void moveLeftUp ()

## Protected Members

- int mSize

## Detailed Description

a simple and fast matrix class

## CMatrix(int inSize,float inDiagonal=1)

constructor

## void getDiagonal(vector<float>& outDiagonal)

get the diagonal of this

## float getOffDiagonalSum()

the sum of off diagonal objects

## void symmetrify()

putting the lower triangle into the upper

## void transpose()

transpose the matrix: this is useful for having the eigenvectors in the lines of the matrix

## void moveLeftUp()

this function is interesting for what we want to do with thismatrix later. We move simply all elements one up, one left. Instead of the elements which were on the righter-lower rim we

## int mSize

the size of this matrix

| Kdoc