Skip to content
Snippets Groups Projects
Commit c9748aa3 authored by Jakhes's avatar Jakhes
Browse files

Udating helper functions

parent 78c4f1cf
No related branches found
No related tags found
No related merge requests found
...@@ -130,6 +130,15 @@ void returnMatrixInformation(Mat< size_t > matrix, float **mat, SP_integer *matC ...@@ -130,6 +130,15 @@ void returnMatrixInformation(Mat< size_t > matrix, float **mat, SP_integer *matC
*mat = convertToArray(matrix); *mat = convertToArray(matrix);
} }
void returnVectorInformation(rowvec vector, float **vecArr, SP_integer *vecArrSize)
{
// return the Matrix dimensions
*vecArrSize = vector.size();
// return the Matrix as one long Array
*vecArr = convertToArray(vector);
}
void returnVectorInformation(vec vector, float **vecArr, SP_integer *vecArrSize) void returnVectorInformation(vec vector, float **vecArr, SP_integer *vecArrSize)
{ {
// return the Matrix dimensions // return the Matrix dimensions
......
...@@ -42,6 +42,8 @@ void returnMatrixInformation(mat matrix, float **mat, SP_integer *matColNum, SP_ ...@@ -42,6 +42,8 @@ void returnMatrixInformation(mat matrix, float **mat, SP_integer *matColNum, SP_
void returnMatrixInformation(Mat< size_t > matrix, float **mat, SP_integer *matColNum, SP_integer *matRowNum); void returnMatrixInformation(Mat< size_t > matrix, float **mat, SP_integer *matColNum, SP_integer *matRowNum);
void returnVectorInformation(rowvec vector, float **vecArr, SP_integer *vecArrSize);
void returnVectorInformation(vec vector, float **vecArr, SP_integer *vecArrSize); void returnVectorInformation(vec vector, float **vecArr, SP_integer *vecArrSize);
void returnVectorInformation(Row< size_t > vector, float **vecArr, SP_integer *vecArrSize); void returnVectorInformation(Row< size_t > vector, float **vecArr, SP_integer *vecArrSize);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment