VERB4D
Macros | Functions | Variables
Matrix.cpp File Reference

Matrix 1D, 2D, 3D and 4D and operations with them. More...

#include "Matrix.h"
#include "Logger.h"

Functions

template<class T >
T * matrix (long Rows)
 Allocating memory for 1D matrix.
 
template<class T >
T ** matrix (long Rows, long Columns)
 Initilizing memory for 2D matrix.
 
template<class T >
T *** matrix (int size_x, int size_y, int size_z)
 Initializing memory for 3D matrix.
 
template<class T >
T **** matrix (int size_w, int size_x, int size_y, int size_z)
 Initializing memory for 4D matrix.
 
template<class T >
void free_matrix (T *m)
 Freeing memory for 1D matrix.
 
template<class T >
void free_matrix (T **m)
 Freeing memory for 2D matrix.
 
template<class T >
void free_matrix (T ***m, int size_x, int size_y)
 Freeing memory for 3D matrix.
 
template<class T >
void free_matrix (T ****m, int size_w, int size_x, int size_y)
 Freeing memory for 4D matrix.
 

Variables

const double err = 1e-6
 

Detailed Description

Matrix 1D, 2D, 3D and 4D and operations with them.

Matrix 1D, 2D, 3D and 4D and operations with them

File has 1D-class, 2D-class 3D-class and 4D-class of matrixes and various functions to work with them.

Author
Developed under supervision of the PI Yuri Shprits