Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9f6eb3e5 authored by MONSEIGNE Thibaut's avatar MONSEIGNE Thibaut
Browse files

:truck: use reset for matrix

parent 526d5234
Branches
No related tags found
No related merge requests found
......@@ -8,7 +8,6 @@ namespace Matrix {
OVTK_API bool copy(CMatrix& dst, const CMatrix& src);
OVTK_API bool copyDescription(CMatrix& dst, const CMatrix& src);
OVTK_API bool copyContent(CMatrix& dst, const CMatrix& src);
OVTK_API bool clearContent(CMatrix& matrix);
OVTK_API bool isDescriptionSimilar(const CMatrix& src1, const CMatrix& src2, bool checkLabels = true);
OVTK_API bool isContentSimilar(const CMatrix& src1, const CMatrix& src2);
OVTK_API bool isContentValid(const CMatrix& src, const bool checkNotANumber = true, const bool checkInfinity = true);
......@@ -24,7 +23,6 @@ namespace MatrixManipulation {
inline bool copy(CMatrix& dst, const CMatrix& src) { return Matrix::copy(dst, src); }
inline bool copyDescription(CMatrix& dst, const CMatrix& src) { return Matrix::copyDescription(dst, src); }
inline bool copyContent(CMatrix& dst, const CMatrix& src) { return Matrix::copyContent(dst, src); }
inline bool clearContent(CMatrix& rMatrix) { return Matrix::clearContent(rMatrix); }
} // namespace MatrixManipulation
} // namespace Toolkit
} // namespace OpenViBE
......@@ -54,12 +54,6 @@ bool Matrix::copyContent(CMatrix& dst, const CMatrix& src)
return true;
}
bool Matrix::clearContent(CMatrix& matrix)
{
memset(matrix.getBuffer(), 0, matrix.getSize() * sizeof(double));
return true;
}
bool Matrix::isDescriptionSimilar(const CMatrix& src1, const CMatrix& src2, const bool checkLabels)
{
if (&src1 == &src2) { return true; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment