Hello,
I looked more carefully at your suggestion, and, yes, 'pile' is very
interesting for my purpose, but only in Format2D from what I have seen.
Moreover it's not as simple as I like to switch to it, I didn't even
know how. In algebra output "mode", look at this if I use the '=' operator.
Apparently in algebra mode 'pile' piles everythings:
(1) -> a:=qnew(4,4)$JF64MAT;a=a
(1) 0.0 0.0 0.0 0.0 = 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
(2) -> juliaMPrint(false)$JF64MAT
(2) true
(3) -> a=a
+0.0 0.0 0.0 0.0+ +0.0 0.0 0.0 0.0+
|0.0 0.0 0.0 0.0| = |0.0 0.0 0.0 0.0|
(3) |0.0 0.0 0.0 0.0| 0.0 0.0 0.0 0.0|
+0.0 0.0 0.0 0.0+ +0.0 0.0 0.0 0.0+
(4) -> )lib JF64MAT
JuliaFloat64Matrix is now explicitly exposed in frame frame1
JuliaFloat64Matrix will be automatically loaded when needed from
/home/greg/Git/jlfricas/JF64MAT.NRLIB/JF64MAT
(4) -> a=a
(4)
0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0
=
0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0
%%(1) is with 'vconcat' and algebra mode, %%(2) the FriCAS mode, i.e. using
matrix$OutputForm, %%(3), an equation, %%(4) the same with 'pile'.
But for matrices with bigger line length 'vconcat' quickly abandons. And a
VCONCAT ``structure" is rendered to the console. If anyone knows how to
circumvent this I would be happy. 'box' behaves also like 'vconcat' with
large output i.e. here with length of line bigger than )boot $LINELENGTH.
(1) -> a:=nrand(3,5)$JF64MAT
(1) -1.13447 0.638686 0.335689 -0.59345 -0.094803
-1.49625 0.193793 0.596652 0.30491 0.937385
-0.230353 0.196435 -0.9298 0.4004 0.409875
Type:
JuliaFloat64Matrix
Time: 0.19 (EV) + 3.00 (OT) = 3.20
sec
(2) -> a:=nrand(3,7)$JF64MAT
(2)
VCONCAT
0.394442 0.0713554 1.25576 1.38318 -0.360066 -0.0659153
0.79
6545
,
-0.187801 -0.130892 -0.0295291 1.40156 -0.785709 2.06677
0.65
2902
,
2.62115 -0.355164 -1.35901 0.780112 -1.7862 -0.454005
-0.08
9139
Type:
JuliaFloat64Matrix
- Greg
Le mar. 7 mai 2024 à 11:16, Ralf Hemmecke <[email protected]> a écrit :
> > is present in a string. Next, it's outputString in i-output.boot that
> > needs a little tweaking for me. In fact, I've bypassed the part of the
> > code that breaks lines.
>
> Well, you could set the output length to the maximum.
>
> )set output length 245
>
> There is also another option use Format2D.
>
> )set output algebra off
> )set output formatted on
> LOFC ==> List(OutputFormatterCategory)
> setFormats!([Formatter Format2D] pretend LOFC)$FormattedOutput
> pile(["long string", "another long string"])$OutputForm
>
> If you do not want to see quotes, then convert to Symbol.
>
> pile(["long string"::Symbol, "another long string"::Symbol])$OutputForm
>
> Format2D should work reasonably well maybe sometimes even better than
> i-output.boot, but it never breaks lines.
> You can consider that a weakness. And it is.
>
> To switch it off again, say
>
> )set output formatted off
> )set output algebra on
>
> Ralf
>
> --
> You received this message because you are subscribed to the Google Groups
> "FriCAS - computer algebra system" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/fricas-devel/b88868ac-c8f2-4709-9a3e-ab078ad5a3b2%40hemmecke.org
> .
>
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/CAHnU2dbJ3-muwqJEo12uUiawcdiSffmGB73S%3Dvv%3Dhk23CJTmgQ%40mail.gmail.com.