First matrix implementation with print_matrix in io
This commit is contained in:
2026-06-23 20:28:11 +02:00
parent 77d2dad320
commit a791201f3a
34 changed files with 824 additions and 1907 deletions
+30 -7
View File
@@ -23,8 +23,8 @@
* Project Name: PANIC
* Module Name: io
* File Name: print_tensor.hpp
* Revision: 0.1.0
* Date: 21-06-2026
* Revision: 0.1.1
* Date: 23-06-2026
* Author: Michelle Bausager
*
* Description:
@@ -51,7 +51,7 @@ namespace panic{
namespace io{
//--------------------------------------------------------------------------------------------------------------------------
// Function Name : panic::io::print
// Function Name : panic::io::print_vector
//
// Description:
// Prints a vector out in the terminal
@@ -71,11 +71,34 @@ namespace io{
// Notes:
// The vector is printed out in square brackets.
//--------------------------------------------------------------------------------------------------------------------------
void print(const panic::tensor::uint_vector& v);
void print(const panic::tensor::int_vector& v);
void print(const panic::tensor::real_vector& v);
void print_vector(const panic::tensor::uint_vector& v);
void print_vector(const panic::tensor::int_vector& v);
void print_vector(const panic::tensor::real_vector& v);
//--------------------------------------------------------------------------------------------------------------------------
// Function Name : panic::io::print_matrix
//
// Description:
// Prints a matrix out in the terminal
//
// Inputs:
// v const panic::tensor::uint_matrix&
// const panic::tensor::int_matrix&
// const panic::tensor::real_matrix&
// matrix to print
//
// Outputs:
// None.
//
// Returns:
// void
//
// Notes:
// The matrix is printed out in square brackets.
//--------------------------------------------------------------------------------------------------------------------------
void print_matrix(const panic::tensor::uint_matrix& v);
void print_matrix(const panic::tensor::int_matrix& v);
void print_matrix(const panic::tensor::real_matrix& v);