first model

This commit is contained in:
2026-07-29 17:34:22 +02:00
parent 47671354ce
commit f5e0ee209b
25 changed files with 2642 additions and 108 deletions
+50
View File
@@ -36,6 +36,7 @@
// INCLUDE DESCRIPTION
//---------------------------------------------------------------------------------------------------------------------------
#include <config/types.hpp> // panic::uint_t, panic::int_t, and panic::real_t
#include <tensor/vector.hpp>
namespace panic{
@@ -187,6 +188,55 @@ struct matrix{
*/
const T& operator()(panic::types::uint_t index_n, panic::types::uint_t index_m) const;
/**
* @brief Filles and set a row to a value.
*
* Computes:
* @code
* A.set_row(1, 3);
* @endcode
*
* @note Sets all values in the matrix.
*/
bool set_row(const panic::types::uint_t index_row, const T v);
/**
* @brief Filles and set a row to a vector.
*
* Computes:
* @code
* A.set_row(1, vector);
* @endcode
*
* @note Sets all values in the matrix.
*/
bool set_row(const panic::types::uint_t index_row, const panic::tensor::vector<T> v);
/**
* @brief Filles and set a column to a value.
*
* Computes:
* @code
* A.set_column(1, 3);
* @endcode
*
* @note Sets all values in the matrix.
*/
bool set_col(const panic::types::uint_t index_col, const T v);
/**
* @brief Filles and set a column to a vector.
*
* Computes:
* @code
* A.set_col(1, vector);
* @endcode
*
* @note Sets all values in the matrix.
*/
bool set_col(const panic::types::uint_t index_col, const panic::tensor::vector<T> v);
};