I want to check multiple matrices using a procedure. Each matrix must be transmitted as a matrix, for example:
type TMatrix = array of array of integer; procedure test_kernel (mat: TMatrix); .... test_kernel ([[1, 2], [1, 3]]);
I cannot find the correct syntax to do this correctly (using parentheses). Does anyone know how to pass a constant matrix as an argument to a procedure? Is it possible at all?
EDIT
As I do not want, I decided to use:
type TMatrix = array of integer; procedure test_kernel (rows, cols: integer; mat: TMatrix); .... test_kernel (2, 2, [1, 2, 1, 3]);
So, I get the illusion and readability of the matrices. Thanks everyone!
source share