I would like that boolean part of Tuple are displayed as such (and not an Integer or a Float) when part of a Matrix. Here the code:
a = [(1., true) (1.5 , true) ; (1.5 , false) (-5.5 , false) ]
2×2 Matrix{Tuple{Float64, Bool}}:
(1.0, 1) (1.5, 1)
(1.5, 0) (-5.5, 0)
However I was hoping for the following result:
2×2 Matrix{Tuple{Float64, Bool}}:
(1.0, true) (1.5, true)
(1.5, false) (-5.5, false)
I guess I am missing something in Julia's type; any help is appreciated.
By accident I realized that:
b = [(1., true) (1.5 , true) ; (false, 1.5) (false, -5.5) ]
2×2 Matrix{Tuple{Real, Real}}:
(1.0, true) (1.5, true)
(false, 1.5) (false, -5.5)
Display the Boolean as I would have expected for a (the first case). It is also unexpected that the Booleans are displayed as such when the Tuple's type is Tuple{Real, Real}. Again I feel that I am missing something; any pointer to a specific part of the documentation is welcomed.
I am using Julia 1.6.1.