21 #ifndef __ANTARES_LIBS_ARRAY_CORRELATION_HXX__
22 #define __ANTARES_LIBS_ARRAY_CORRELATION_HXX__
23 #include "antares/study/area/area.h"
25 namespace Antares::Data
27 inline void InterAreaCorrelationResetMatrix(
Matrix<>* m, AreaList* l)
31 m->
resize(l->size(), l->size());
45 template<
class StringT>
46 inline void Correlation::set(
Matrix<>& m,
const Area& from,
const Area& to,
const StringT& value)
49 if (!value.template to<double>(d))
52 <<
"' / '" << to.
name <<
"' (got '" << value <<
"')";
Definition for a single area.
Definition: area.h:51
AreaName name
Name of the area.
Definition: area.h:212
Yuni::CString< 30, false > correlationName
The name to displays in logs.
Definition: correlation.h:143
Mode mode() const
Get the current mode.
Definition: correlation.hxx:40
A n-by-n matrix.
Definition: matrix.h:44
void resize(uint w, uint h, bool fixedSize=false)
Resize the matrix.
Definition: matrix.hxx:554
void fillUnit()
Make the matrix an unit matrix (identity matrix)
Definition: matrix.hxx:361