first model
This commit is contained in:
@@ -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);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user