diff --git a/src/helper_files/helper.cpp b/src/helper_files/helper.cpp index 05b47f5c46d2a981a617b0bf739bdd89d9efa8e3..f0a4b68d859822934450f75626fdff0f323b1a70 100644 --- a/src/helper_files/helper.cpp +++ b/src/helper_files/helper.cpp @@ -130,6 +130,15 @@ void returnMatrixInformation(Mat< size_t > matrix, float **mat, SP_integer *matC *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) { // return the Matrix dimensions diff --git a/src/helper_files/helper.hpp b/src/helper_files/helper.hpp index 63bb0256a5b52c5fb3774231fbc7e3763d4d288c..7849b48a6d4373d91a2c41b88fabc0cfdbc2151f 100644 --- a/src/helper_files/helper.hpp +++ b/src/helper_files/helper.hpp @@ -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 returnVectorInformation(rowvec 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);