Forum Discussion
Altera_Forum
Honored Contributor
11 years agomatrix operation
how can 4*4 matrix is created?
how can we get 4*4 matrix from 4 row matrix? how can particular column elements selected from 4*4 matrix? How inverse matrix calculated by using LU decomposition for 4*4 matrix?4 Replies
- Altera_Forum
Honored Contributor
Can you go into any more details? have you got code you've started already?
All of this is possible with VHDL.. - Altera_Forum
Honored Contributor
as a part of my project on Hill Cipher algorithm .
Actually i want take 4-bit binary vector as input. by taking four such vector create a 4*4 matrix from it,then select elements from column and multiply with another 4*4 binary matrix. thanks a lot!! - Altera_Forum
Honored Contributor
pivoting of matrix in vhdl
- Altera_Forum
Honored Contributor
use an array and write a function. E.g.
type t_matrix is array (0 to 3) of bit_vector(0 to 3); signal s_matrix : t_matrix := (others => (others => '0'));function pivot_matrix(input_matrix : t_matrix) return t_matrix is variable output_matrix : t_matrix; begin return output_matrix; end function;