Files
LAFF/Answers/Week04/test_Trmv_ln_unb_var2.m
Julien Lengrand-Lambert d4dce71599 Create repo
2018-05-02 09:13:08 +02:00

10 lines
226 B
Matlab
Executable File

A = randi( [ -2, 2 ], 4, 4 )
x = randi( [ -2, 2 ], 4, 1 )
if ( isequal( Trmv_ln_unb_var2( A, x ), tril( A ) * x ) )
disp( 'Trmv_ln_unb_var2 appears to be correct' )
else
disp( 'Trmv_ln_unb_var2 has a problem' )
end