1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-09-20 05:25:37 +01:00
LatAnalyze/latan/Sample.cpp

31 lines
549 B
C++

#include <latan/Sample.hpp>
#include <latan/includes.hpp>
using namespace Latan;
DSample::DSample(void)
: DSampleBase(static_cast<Index>(0))
{}
DSample::DSample(const unsigned int nSample, const unsigned int nRow,
const unsigned int nCol)
: DSampleBase(static_cast<Index>(nSample + 1))
{
for (int s = 0; s < size(); ++s)
{
(*this)(s).resize(nRow, nCol);
}
}
DMat& DSample::operator()(const int s)
{
if (s >= 0)
{
return (*this)(s + 1);
}
else
{
return (*this)(0);
}
}