mirror of
https://github.com/Relintai/pmlpp.git
synced 2024-12-21 14:56:47 +01:00
Added a raw pointer based constructor to MLPPVector.
This commit is contained in:
parent
77127594ed
commit
25ce447853
@ -1457,6 +1457,16 @@ MLPPVector::MLPPVector(const PoolRealArray &p_from) {
|
||||
}
|
||||
}
|
||||
|
||||
MLPPVector::MLPPVector(const real_t *p_from, const int p_size) {
|
||||
_size = 0;
|
||||
_data = NULL;
|
||||
|
||||
resize(p_size);
|
||||
for (int i = 0; i < _size; i++) {
|
||||
_data[i] = p_from[i];
|
||||
}
|
||||
}
|
||||
|
||||
MLPPVector::~MLPPVector() {
|
||||
if (_data) {
|
||||
reset();
|
||||
|
@ -252,6 +252,7 @@ public:
|
||||
MLPPVector(const MLPPVector &p_from);
|
||||
MLPPVector(const Vector<real_t> &p_from);
|
||||
MLPPVector(const PoolRealArray &p_from);
|
||||
MLPPVector(const real_t *p_from, const int p_size);
|
||||
|
||||
~MLPPVector();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user