Added ESP-IDF Wifi/UDP support (but it still give linker errors)
This commit is contained in:
parent
7461a1ff77
commit
06ff5e9ab6
2
Angle.h
2
Angle.h
@ -21,7 +21,7 @@ template <typename T>
|
|||||||
class AngleOf {
|
class AngleOf {
|
||||||
public:
|
public:
|
||||||
/// @brief Create a new angle with a zero value
|
/// @brief Create a new angle with a zero value
|
||||||
AngleOf<T>();
|
AngleOf();
|
||||||
|
|
||||||
/// @brief An zero value angle
|
/// @brief An zero value angle
|
||||||
const static AngleOf<T> zero;
|
const static AngleOf<T> zero;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#pragma region Matrix1
|
#pragma region Matrix1
|
||||||
|
|
||||||
LinearAlgebra::Matrix1::Matrix1(int size) : size(size) {
|
Matrix1::Matrix1(int size) : size(size) {
|
||||||
if (this->size == 0)
|
if (this->size == 0)
|
||||||
data = nullptr;
|
data = nullptr;
|
||||||
else {
|
else {
|
||||||
@ -12,7 +12,7 @@ LinearAlgebra::Matrix1::Matrix1(int size) : size(size) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LinearAlgebra::Matrix1::Matrix1(float* data, int size)
|
Matrix1::Matrix1(float* data, int size)
|
||||||
: data(data), size(size) {
|
: data(data), size(size) {
|
||||||
this->externalData = true;
|
this->externalData = true;
|
||||||
}
|
}
|
||||||
|
16
Matrix.h
16
Matrix.h
@ -9,8 +9,8 @@ namespace LinearAlgebra {
|
|||||||
/// @brief A 1-dimensional matrix or vector of arbitrary size
|
/// @brief A 1-dimensional matrix or vector of arbitrary size
|
||||||
class Matrix1 {
|
class Matrix1 {
|
||||||
public:
|
public:
|
||||||
int size = 0;
|
|
||||||
float* data = nullptr;
|
float* data = nullptr;
|
||||||
|
int size = 0;
|
||||||
|
|
||||||
Matrix1(int size);
|
Matrix1(int size);
|
||||||
Matrix1(float* data, int size);
|
Matrix1(float* data, int size);
|
||||||
@ -74,12 +74,12 @@ class Matrix2 {
|
|||||||
}
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
friend Matrix2 operator*(float f, const Matrix2& v) {
|
// friend Matrix2 operator*(float f, const Matrix2& v) {
|
||||||
Matrix2 r = Matrix2(v.nRows, v.nCols);
|
// Matrix2 r = Matrix2(v.nRows, v.nCols);
|
||||||
for (int ix = 0; ix < r.nValues; ix++)
|
// for (int ix = 0; ix < r.nValues; ix++)
|
||||||
r.data[ix] = f * v.data[ix];
|
// r.data[ix] = f * v.data[ix];
|
||||||
return r;
|
// return r;
|
||||||
}
|
// }
|
||||||
|
|
||||||
void SetSlice(int rowStart,
|
void SetSlice(int rowStart,
|
||||||
int rowStop,
|
int rowStop,
|
||||||
@ -208,6 +208,6 @@ class MatrixOf {
|
|||||||
};
|
};
|
||||||
|
|
||||||
} // namespace LinearAlgebra
|
} // namespace LinearAlgebra
|
||||||
using namespace LinearAlgebra;
|
//using namespace LinearAlgebra;
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
x
Reference in New Issue
Block a user