New norms and division by scalar
Some checks failed
Merge-Checker / build_and_test (pull_request) Failing after 21s

This commit is contained in:
2025-06-02 16:19:23 -04:00
parent 60a2b12b5f
commit 64820553c7
5 changed files with 40 additions and 23 deletions

View File

@@ -132,7 +132,9 @@ public:
* @brief reduce the matrix so the sum of its elements equal 1
* @param result a buffer to store the result into
*/
Matrix<rows, columns> EuclideanNorm() const;
float EuclideanNorm() const;
float L2Norm() const;
/**
* @brief Get a row from the matrix
@@ -201,6 +203,8 @@ public:
Matrix<rows, columns> operator*(float scalar) const;
Matrix<rows, columns> operator/(float scalar) const;
template <uint8_t sub_rows, uint8_t sub_columns, uint8_t row_offset,
uint8_t column_offset>
Matrix<sub_rows, sub_columns> SubMatrix() const;