mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-10 08:55:37 +00:00
31 lines
549 B
C++
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);
|
|
}
|
|
}
|