From 487a48ba890cefa9ecbaab2c8203df3092f0e604 Mon Sep 17 00:00:00 2001 From: Bausager Date: Fri, 19 Jun 2026 10:12:33 +0200 Subject: [PATCH] Update main.cpp --- main.cpp | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 89 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 8b834ba..6074b63 100644 --- a/main.cpp +++ b/main.cpp @@ -30,4 +30,92 @@ * Description: * * - *++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ \ No newline at end of file + *++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ +// includes like: +// #include + +//--------------------------------------------------------------------------------------------------------------------------- +// DEFINE DESCRIPTION +//--------------------------------------------------------------------------------------------------------------------------- + // difinitions like: +// #define TEST_FALG 1 + + +//--------------------------------------------------------------------------------------------------------------------------- +// VARIABLE DESCRIPTION +//--------------------------------------------------------------------------------------------------------------------------- +// Variable difinition like: +// static uint32_t AmountOfCool = 0; + + +//--------------------------------------------------------------------------------------------------------------------------- +// FUNCTION PROTOTYPE +//--------------------------------------------------------------------------------------------------------------------------- +// Function prototypes like: +// static void TestLeds(void); + + + +// Function distription like: +//-------------------------------------------------------------------------------------------------------------------------- +// Function Name : panic::math::matmul_serial +// Revision : 0.1.0 +// Date : 2026-06-19 +// +// Description: +// Performs serial matrix multiplication: +// +// out = a * b +// +// Inputs: +// a const panic::Matrix& +// Left-hand input matrix. +// +// b const panic::Matrix& +// Right-hand input matrix. +// +// Outputs: +// out panic::Matrix& +// Output matrix. Must be allocated before calling this function. +// The function writes the result into this matrix. +// +// Returns: +// panic::Status +// panic::Status::Ok Matrix multiplication completed successfully. +// panic::Status::SizeError Matrix dimensions are incompatible. +// panic::Status::NullError One or more internal data pointers are null. +// +// Notes: +// This function does not allocate memory. +// The output matrix must have dimensions +//-------------------------------------------------------------------------------------------------------------------------- + + +// or + + +//-------------------------------------------------------------------------------------------------------------------------- +// Function Name : panic::math::sqrt +// Revision : 0.1.0 +// Date : 2026-06-19 +// +// Description: +// Computes an approximation of the square root of a scalar value. +// +// Inputs: +// x panic::float_t +// Input value. +// +// Outputs: +// None. +// +// Returns: +// panic::float_t +// Approximate square root of x. +// +// Notes: +// This implementation is written from scratch and is intended to be readable +// and portable rather than maximally optimized. +//-------------------------------------------------------------------------------------------------------------------------- + +