Add empty Serialize() methods to initialization policies.

This commit is contained in:
Ryan Curtin
2015-09-25 21:33:13 +00:00
parent df2dac2a7e
commit 14e794d006
3 changed files with 12 additions and 0 deletions
@@ -68,6 +68,10 @@ class AverageInitialization
W = W + avgV;
H = H + avgV;
}
//! Serialize the object (in this case, there is nothing to do).
template<typename Archive>
void Serialize(Archive& /* ar */, const unsigned int /* version */) { }
};
} // namespace amf
@@ -76,6 +76,10 @@ class RandomAcolInitialization
// Initialize H to random values.
H.randu(r, m);
}
//! Serialize the object (in this case, there is nothing to serialize).
template<typename Archive>
void Serialize(Archive& /* ar */, const unsigned int /* version */) { }
};
} // namespace amf
@@ -45,6 +45,10 @@ class RandomInitialization
W.randu(n, r);
H.randu(r, m);
}
//! Serialize the object (in this case, there is nothing to serialize).
template<typename Archive>
void Serialize(Archive& /* ar */, const unsigned int /* version */) { }
};
} // namespace amf