Skip to content
Snippets Groups Projects
Commit 6954358a authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm getShape, no longer used

parent b127b422
No related branches found
No related tags found
1 merge request!1979consolidate Datafield related code
......@@ -19,17 +19,6 @@
#include "Device/Data/Datafield.h"
#include <stdexcept>
std::pair<size_t, size_t> DataUtil::Array::getShape(const std::vector<std::vector<double>>& vec)
{
size_t nrows = vec.size();
size_t ncols(0);
if (nrows)
ncols = vec[0].size();
for (size_t row = 0; row < nrows; row++)
ASSERT(vec[row].size() == ncols);
return std::make_pair(nrows, ncols);
}
std::tuple<size_t, size_t, std::vector<double>>
DataUtil::Array::flatten2D(const std::vector<std::vector<double>>& vec)
{
......
......@@ -27,9 +27,6 @@ class Datafield;
namespace DataUtil::Array {
//! Returns shape nrows, ncols of 2D array.
std::pair<size_t, size_t> getShape(const std::vector<std::vector<double>>&);
std::tuple<size_t, size_t, std::vector<double>> flatten2D(const std::vector<std::vector<double>>&);
std::unique_ptr<Datafield> createPField1D(const std::vector<double>& vec);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment