Matrix
First matrix implementation with print_matrix in io
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user