[bug #68300] blkdiag with arguments of type single returns result of type double

"Dmitri A. Sergatskov" <[email protected]> Mon, 4 May 2026 09:19:30 -0400 (EDT)
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

Follow-up Comment #12, bug #68300 (group octave):

Now I realised where I was wrong -- casting "double" to double" is fast.


octave:41> tic; for jj=1:100 ; c = double(a); endfor; toc
Elapsed time is 2.71492 seconds.
octave:42> tic; for jj=1:100 ; c = double(b); endfor; toc
Elapsed time is 0.000683784 seconds.


Dmitri.
-- 



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68300>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCafic4gAKCRCqLAuaBUf3
TgHiAQDcvmH26cVgXC2/nBXIp7BoB+Q/qbRDK/KzKoBQsIwXTQEAmGNKY8KMWQF3
YCFqlUCtht8srkwLZLY7sNwiq3GPYgo=
=BKL6
-----END PGP SIGNATURE-----