Go to the source code of this file.
Classes | |
| struct | tagSQ_FloatMatrix |
Typedefs | |
| typedef struct tagSQ_FloatMatrix * | SQ_FloatMatrix |
This file list the SQFloatMatrix object used in Umetrics SIMCA-Q products.
| typedef struct tagSQ_FloatMatrix * SQ_FloatMatrix |
A float matrix that is used to get and send data to many functions. Index base = 1. IMPORTANT: Always initialize it to NULL!
| SQ_ErrorCode SQ_ClearFloatMatrix | ( | SQ_FloatMatrix * | pMatrix | ) |
Removes the matrix, this function must be called for every matrix that has been initialized with SQ_InitFloatMatrix.
| [in] | pMatrix | The matrix to be removed. |
| SQ_ErrorCode SQ_CopyFloatMatrix | ( | SQ_FloatMatrix | pInMatrix, |
| SQ_FloatMatrix * | pOutMatrix | ||
| ) |
Get a copy of the float matrix
| [in] | pInMatrix | The vector to copy. |
| [in,out] | pOutMatrix | The result vector. |
| SQ_ErrorCode SQ_GetColumnDataFromFloatMatrix | ( | SQ_FloatMatrix | pMatrix, |
| int | iColumn, | ||
| float * | pfVals | ||
| ) |
Gets the data from a given column.
| [in] | pMatrix | The matrix to get the data from. |
| [in] | iColumn | The column to get the data from. |
| [in] | pfVals | The data in given column. Must be of same length as number of rows |
| SQ_ErrorCode SQ_GetDataFromFloatMatrix | ( | SQ_FloatMatrix | pMatrix, |
| int | iRow, | ||
| int | iColumn, | ||
| float * | pfVal | ||
| ) |
Gets the data from a given cell.
| [in] | pMatrix | The matrix to get the data from. |
| [in] | iRow | The row to get the data from. |
| [in] | iColumn | The column to get the data from. |
| [out] | pfVal | The data in the cell. A pointer to where the data should be stored |
| SQ_ErrorCode SQ_GetFloatMatrix | ( | SQ_FloatMatrix | pMatrix, |
| float * | pfVals | ||
| ) |
Gets the data from the matrix.
| [in] | pMatrix | The matrix to get the data from. |
| [out] | pfVals | A pointer to a matrix to be filled with data from the FloatMatrix. Must be of same size as the FloatMatrix The format is Row 1, Row 2, etc. |
| SQ_ErrorCode SQ_GetNumColumnsInFloatMatrix | ( | SQ_FloatMatrix | pMatrix, |
| int * | piNumCols | ||
| ) |
Returns the number of columns in the matrix.
| [in] | pMatrix | The matrix to get the number of columns from. |
| [out] | piNumCols | The number of columns in the matrix. |
| SQ_ErrorCode SQ_GetNumRowsInFloatMatrix | ( | SQ_FloatMatrix | pMatrix, |
| int * | piNumRows | ||
| ) |
Returns the number of rows in the matrix.
| [in] | pMatrix | The matrix to get the number of rows from. |
| [out] | piNumRows | The number of rows in the matrix. |
| SQ_ErrorCode SQ_GetRowDataFromFloatMatrix | ( | SQ_FloatMatrix | pMatrix, |
| int | iRow, | ||
| float * | pfVals | ||
| ) |
Gets the data from a given row.
| [in] | pMatrix | The matrix to get the data from. |
| [in] | iRow | The row to get the data from. |
| [out] | pfVals | The data in given row. Must be of same length as number of columns |
| SQ_ErrorCode SQ_InitFloatMatrix | ( | SQ_FloatMatrix * | pMatrix, |
| int | iRow, | ||
| int | iColumn | ||
| ) |
Initialize a float matrix with its size.
| [in] | pMatrix | The matrix to be initialized. |
| [in] | iRow | Number of rows to give the matrix. |
| [in] | iColumn | Number of columns to give the matrix. |
| SQ_ErrorCode SQ_SetColumnDataInFloatMatrix | ( | SQ_FloatMatrix | pMatrix, |
| int | iColumn, | ||
| const float * | pfVals | ||
| ) |
Sets the data in the given column.
| [in] | pMatrix | The matrix to set the data in. |
| [in] | iColumn | The column to set the data in. |
| [in] | pfVals | An array of data to set the column with. Must be of same length as number of rows |
| SQ_ErrorCode SQ_SetDataInFloatMatrix | ( | SQ_FloatMatrix | pMatrix, |
| int | iRow, | ||
| int | iColumn, | ||
| float | fVal | ||
| ) |
Sets the data in the given cell.
| [in] | pMatrix | The matrix to set the data in. |
| [in] | iRow | The row to set the data in. |
| [in] | iColumn | The column to set the data in. |
| [in] | fVal | The data to set the cell with. |
| SQ_ErrorCode SQ_SetFloatMatrix | ( | SQ_FloatMatrix | pMatrix, |
| const float * | pfVals | ||
| ) |
Sets the data in the matrix.
| [in] | pMatrix | The matrix to set the data in. |
| [in] | pfVals | A matrix of data to fill the FloatMatrix. Must be of same size as the FloatMatrix. The format is Row 1, Row 2, etc. |
| SQ_ErrorCode SQ_SetRowDataInFloatMatrix | ( | SQ_FloatMatrix | pMatrix, |
| int | iRow, | ||
| const float * | pfVals | ||
| ) |
Sets the data in the given row.
| [in] | pMatrix | The matrix to set the data in. |
| [in] | iRow | The row to set the data in. |
| [in] | pfVals | An array of data to set the row with. Must be of same length as number of columns |
| SQ_ErrorCode SQ_TransposeFloatMatrix | ( | SQ_FloatMatrix | pMatrix | ) |
Transpose the matrix. This can only be done if the float matrix does not come from a VectorData object. If it is from a VectorData object, it must be extracted with the GetDataMatrixCopy function.
| [in] | pMatrix | The matrix to transpose. |
Copyright (C) Sartorius Stedim Data Analytics AB - Generated by Doxygen