mirror of
https://github.com/jlengrand/LAFF.git
synced 2026-03-10 08:31:21 +00:00
11 lines
264 B
Matlab
Executable File
11 lines
264 B
Matlab
Executable File
A = randi( [ -2, 2 ], 4, 4 )
|
|
x = randi( [ -2, 2 ], 4, 1 )
|
|
y = randi( [ -2, 2 ], 4, 1 )
|
|
|
|
if ( isequal( Trmvp_un_unb_var2( A, x, y ), triu( A ) * x + y ) )
|
|
disp( 'Trmvp_un_unb_var2 appears to be correct' )
|
|
else
|
|
disp( 'Trmvp_un_unb_var2 has a problem' )
|
|
end
|
|
|