[Scilab-users] unwrapped display in console <= Re: Accidentally displaying huge matrices
Samuel Gougeon
sgougeon at free.fr
Mon May 25 18:33:42 CEST 2015
Hello,
Le 21/05/2015 23:19, Stéphane Mottelet a écrit :
> .../...
> Hello,
>
> Here's the behavior of Julia in such a situation, it displays dots in
> order that the matrix fits the console :
>
> julia> a=rand(1000,1000)
> 1000x1000 Array{Float64,2}:
> 0.297296 0.695023 0.12543 … 0.0390378 0.121275 0.797062
> 0.749667 0.48559 0.604402 0.100194 0.655009 0.806418
> 0.990547 0.986391 0.578132 0.0591879 0.203927 0.299021
> ⋮ ⋱
> 0.974187 0.042388 0.899955 0.662621 0.524229 0.862864
> 0.592462 0.0955458 0.335428 0.0547896 0.0658267 0.49732
> 0.653529 0.358696 0.350873 0.581111 0.127847 0.461723
> 0.0687691 0.317925 0.615902 0.610041 0.196348 0.219813
>
> S.
Another way would be to have an non-wrapping display mode: each line of
a matrix (or anything else) would be displayed on a single line in the
console, without wrapping. This could make hugely wide lines, that
nevertheless could be easily browsed using the horizontal scroll bar. In
addition, such a mode could enable displaying columns numbers in header
; this could be repeated every console_height lines.
Specifying a negative console width could trigger this behavior.
Samuel
More information about the users
mailing list