Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.arch > #32156 > unrolled thread
| Started by | jgk@panix.com (Joe keane) |
|---|---|
| First post | 2015-12-26 21:45 +0000 |
| Last post | 2016-02-19 11:40 +0100 |
| Articles | 20 on this page of 42 — 14 participants |
Back to article view | Back to comp.arch
floating-point range jgk@panix.com (Joe keane) - 2015-12-26 21:45 +0000
Re: floating-point range MitchAlsup <MitchAlsup@aol.com> - 2015-12-26 18:49 -0800
Re: floating-point range Quadibloc <jsavard@ecn.ab.ca> - 2015-12-26 20:19 -0800
Re: floating-point range Terje Mathisen <terje.mathisen@tmsw.no> - 2015-12-27 09:53 +0100
Re: floating-point range Morten Reistad <first@last.name.invalid> - 2016-02-16 18:23 +0100
Re: floating-point range Robert Wessel <robertwessel2@yahoo.com> - 2016-02-16 12:28 -0600
Re: floating-point range Robert Wessel <robertwessel2@yahoo.com> - 2016-02-16 12:41 -0600
Re: floating-point range Morten Reistad <first@last.name.invalid> - 2016-02-16 21:43 +0100
Re: floating-point range Robert Wessel <robertwessel2@yahoo.com> - 2016-02-16 17:27 -0600
Re: floating-point range Terje Mathisen <terje.mathisen@tmsw.no> - 2016-02-17 08:35 +0100
Re: floating-point range nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-17 09:51 +0000
Re: floating-point range Terje Mathisen <terje.mathisen@tmsw.no> - 2016-02-17 11:42 +0100
Re: floating-point range nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-17 11:56 +0000
Re: floating-point range BGB <cr88192@hotmail.com> - 2016-02-17 09:56 -0600
Re: floating-point range nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-17 16:14 +0000
Re: floating-point range Terje Mathisen <terje.mathisen@tmsw.no> - 2016-02-18 07:42 +0100
Re: floating-point range BGB <cr88192@hotmail.com> - 2016-02-18 10:09 -0600
Re: floating-point range jim.brakefield@ieee.org - 2016-02-18 12:33 -0800
Re: floating-point range Terje Mathisen <terje.mathisen@tmsw.no> - 2016-02-18 22:08 +0100
Re: floating-point range BGB <cr88192@hotmail.com> - 2016-02-18 15:45 -0600
Re: floating-point range MitchAlsup <MitchAlsup@aol.com> - 2016-02-18 16:42 -0800
Re: floating-point range BGB <cr88192@hotmail.com> - 2016-02-19 08:04 -0600
Re: floating-point range nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-19 11:55 +0000
Re: floating-point range BGB <cr88192@hotmail.com> - 2016-02-19 08:24 -0600
Re: floating-point range MitchAlsup <MitchAlsup@aol.com> - 2016-02-19 07:09 -0800
Re: floating-point range BGB <cr88192@hotmail.com> - 2016-02-19 10:51 -0600
Re: floating-point range Terje Mathisen <terje.mathisen@tmsw.no> - 2016-02-19 18:02 +0100
Re: floating-point range Quadibloc <jsavard@ecn.ab.ca> - 2016-02-19 11:55 -0800
Re: floating-point range Terje Mathisen <terje.mathisen@tmsw.no> - 2016-02-19 21:14 +0100
Re: floating-point range MitchAlsup <MitchAlsup@aol.com> - 2016-02-19 16:20 -0800
Re: floating-point range Terje Mathisen <terje.mathisen@tmsw.no> - 2016-02-20 10:14 +0100
Re: floating-point range anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-02-20 12:51 +0000
Re: floating-point range anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-02-20 12:30 +0000
Re: floating-point range paul wallich <pw@panix.com> - 2016-02-19 12:37 -0500
Re: floating-point range Quadibloc <jsavard@ecn.ab.ca> - 2016-02-19 11:58 -0800
Re: floating-point range jim.brakefield@ieee.org - 2016-02-19 14:29 -0800
Re: floating-point range "James Van Buskirk" <not_valid@comcast.net> - 2016-02-17 10:21 -0700
Re: floating-point range nmm@wheeler.UUCP (Nick Maclaren) - 2016-02-17 17:34 +0000
Re: floating-point range Quadibloc <jsavard@ecn.ab.ca> - 2016-02-17 11:13 -0800
Re: floating-point range "wolfgang kern" <nowhere@never.at> - 2016-02-16 19:39 +0100
Re: floating-point range MitchAlsup <MitchAlsup@aol.com> - 2016-02-16 16:36 -0800
Re: floating-point range Piotr Wyderski <peter.pan@neverland.mil> - 2016-02-19 11:40 +0100
Page 2 of 3 — ← Prev page 1 [2] 3 Next page →
| From | MitchAlsup <MitchAlsup@aol.com> |
|---|---|
| Date | 2016-02-18 16:42 -0800 |
| Message-ID | <014e7f3f-4327-4fc7-afac-de6c2297063c@googlegroups.com> |
| In reply to | #33726 |
On Thursday, February 18, 2016 at 10:15:13 AM UTC-6, BGB wrote: I can say one thing about NaNs in Graphics:: they make perfectly horrible pixel colors.
[toc] | [prev] | [next] | [standalone]
| From | BGB <cr88192@hotmail.com> |
|---|---|
| Date | 2016-02-19 08:04 -0600 |
| Message-ID | <na77or$4hi$1@news.albasani.net> |
| In reply to | #33730 |
On 2/18/2016 6:42 PM, MitchAlsup wrote: > On Thursday, February 18, 2016 at 10:15:13 AM UTC-6, BGB wrote: > > I can say one thing about NaNs in Graphics:: they make perfectly horrible pixel colors. > yes. typically most useful thing to do with NaNs is, when encountered, converting them to zeroes. I am not sure if anyone noticed my numerical screw-ups in that post. otherwise, thinking of it, messing around a little more with neuron cubes, generally getting single-thread performance in the area of 40 meganeurons/second (*). *: how does one measure NN performance anyways? I opted to measure it in terms of how quickly it can evaluate the new state for the neurons (forward propagation only). granted, it is yet to be verified it really "actually works", vs spinning in place doing nothing all that useful (its implementation is to loop over and recalculate the state for every neuron for each pass). noted that speed differences between direct FP8 (via LUTs), using fixed-point for calculations (float8 -> fixed-point -> float8), and using float for calculations, is surprisingly modest. this is using a net with 512 bit neurons, with 32 bits per dendrite. useful? ... not as of yet. then went and started throwing together an EXR decoder (was having trouble getting OpenEXR to build on Windows), having to partly reverse engineer some stuff (from the source), as the format isn't really documented for crap (and they are doing the whole "whatever the implementation does is the standard" thing...). the images I ran into use PIZ compression, so I am starting there, but alas... then quick check, seems FFmpeg also has a decoder for it (and at least it is written in more straightforward looking C...).
[toc] | [prev] | [next] | [standalone]
| From | nmm@wheeler.UUCP (Nick Maclaren) |
|---|---|
| Date | 2016-02-19 11:55 +0000 |
| Message-ID | <na6vqm$sg4$1@dont-email.me> |
| In reply to | #33726 |
In article <na4qmd$hdh$1@news.albasani.net>, BGB <cr88192@hotmail.com> wrote: >On 2/18/2016 12:42 AM, Terje Mathisen wrote: > >apparently, a packed format like this, just storing scaled log-scale >values, is apparently gaining popularity for higher-end digital cameras. >though the ones I have had have only ever taken pictures as JPG's, often >with surprisingly low quality settings (the camera vendor is content to >have its max quality setting save an image as a JPEG at roughly 60-70% >quality). > >though, 70% is sort of a magic number with JPEG, being the point at >which typically there is the maximum space-savings relative to quality. >higher quality, and size increases considerably, lower and artifacts >start to become much more obvious (with relatively lower space savings), >though if one sticks a 32GB or 64GB SD card in the camera, they "should" >probably have the option of turning up to a higher quality level, or >storing images in a closer to lossless format. I find that 10% is also a magic number, in that it is so often the best compromise when uploading pictures of objects/plants/locations/etc. Oh, yes, it's obviously crude, but it conveys all the main information without making the viewer strain. That could be encoded very compactly, but I don't believe that a generic floating-point format would help. Regards, Nick Maclaren.
[toc] | [prev] | [next] | [standalone]
| From | BGB <cr88192@hotmail.com> |
|---|---|
| Date | 2016-02-19 08:24 -0600 |
| Message-ID | <na78v1$6ik$1@news.albasani.net> |
| In reply to | #33732 |
On 2/19/2016 5:55 AM, Nick Maclaren wrote: > In article <na4qmd$hdh$1@news.albasani.net>, BGB <cr88192@hotmail.com> wrote: >> On 2/18/2016 12:42 AM, Terje Mathisen wrote: >> >> apparently, a packed format like this, just storing scaled log-scale >> values, is apparently gaining popularity for higher-end digital cameras. >> though the ones I have had have only ever taken pictures as JPG's, often >> with surprisingly low quality settings (the camera vendor is content to >> have its max quality setting save an image as a JPEG at roughly 60-70% >> quality). >> >> though, 70% is sort of a magic number with JPEG, being the point at >> which typically there is the maximum space-savings relative to quality. >> higher quality, and size increases considerably, lower and artifacts >> start to become much more obvious (with relatively lower space savings), >> though if one sticks a 32GB or 64GB SD card in the camera, they "should" >> probably have the option of turning up to a higher quality level, or >> storing images in a closer to lossless format. > > I find that 10% is also a magic number, in that it is so often the > best compromise when uploading pictures of objects/plants/locations/etc. > Oh, yes, it's obviously crude, but it conveys all the main information > without making the viewer strain. That could be encoded very compactly, > but I don't believe that a generic floating-point format would help. > the point is that at this point, the image sensors in cameras can generally get images with a higher bit depth, and support HDR, which can't really be expressed in JFIF JPEGs. JPEG then looses a lot of information from the image sensor. the alternative is more cameras supporting various "raw" formats, many of which are using log-scale or floating-point representations. then people convert and distribute the images as EXR files, which after me having recently encountered them, am left trying to get a decoder for them hacked together so I can mess with them. generally, I had used different formats for HDR: some variations on my BTIC formats; extended JPEGs with the image stored in a sort of YUV+Exponent form (via embedded sub-images); hacked variations on BMP (well, set "biCompression" to "RGBF" and stick HDR FP images in it, using other fields as normal to describe the layout of the image data).
[toc] | [prev] | [next] | [standalone]
| From | MitchAlsup <MitchAlsup@aol.com> |
|---|---|
| Date | 2016-02-19 07:09 -0800 |
| Message-ID | <b3ae3b75-6401-4f62-a529-54bc48bb54af@googlegroups.com> |
| In reply to | #33734 |
On Friday, February 19, 2016 at 8:30:59 AM UTC-6, BGB wrote: > the point is that at this point, the image sensors in cameras can > generally get images with a higher bit depth, and support HDR, which > can't really be expressed in JFIF JPEGs. JPEG then looses a lot of > information from the image sensor. What is unclear to me is that:: a) as one gets more and more pixels b) the well depth of the pixels goes down ...10 years ago the pixels could hold 65K electrons ...now they are lucky to hold 32K electrons c) yet they are being sampled with 14-bit A/Ds d) and end up with HDR dynamic range. A floating point numericalist would say "this cannot be"
[toc] | [prev] | [next] | [standalone]
| From | BGB <cr88192@hotmail.com> |
|---|---|
| Date | 2016-02-19 10:51 -0600 |
| Message-ID | <na7hie$lvs$1@news.albasani.net> |
| In reply to | #33735 |
On 2/19/2016 9:09 AM, MitchAlsup wrote: > On Friday, February 19, 2016 at 8:30:59 AM UTC-6, BGB wrote: > >> the point is that at this point, the image sensors in cameras can >> generally get images with a higher bit depth, and support HDR, which >> can't really be expressed in JFIF JPEGs. JPEG then looses a lot of >> information from the image sensor. > > What is unclear to me is that:: > a) as one gets more and more pixels > b) the well depth of the pixels goes down > ...10 years ago the pixels could hold 65K electrons > ...now they are lucky to hold 32K electrons > c) yet they are being sampled with 14-bit A/Ds > d) and end up with HDR dynamic range. > > A floating point numericalist would say "this cannot be" > I have no idea here, it just seems to work somehow. was at least making some progress ripping the EXR decoder from FFmpeg and making it standalone (seemed like less effort than trying to make sense of its Huffman decoder and wavelet transform), hackishly patching stuff up to make it standalone. general design though appears to be: MSB-first bitstream, canonical Huffman codes with longest codes assigned lower prefixes (this is backwards from Deflate), implementing an RLE encoding over the coefficient data. image transform seems to be a 2D Haar wavelet with DC prediction. not too drastic, just too bad it isn't really documented. I have messed with these sort of designs before, but they aren't usually particularly fast.
[toc] | [prev] | [next] | [standalone]
| From | Terje Mathisen <terje.mathisen@tmsw.no> |
|---|---|
| Date | 2016-02-19 18:02 +0100 |
| Message-ID | <na7hrg$9dd$1@gioia.aioe.org> |
| In reply to | #33735 |
MitchAlsup wrote: > On Friday, February 19, 2016 at 8:30:59 AM UTC-6, BGB wrote: > >> the point is that at this point, the image sensors in cameras can >> generally get images with a higher bit depth, and support HDR, which >> can't really be expressed in JFIF JPEGs. JPEG then looses a lot of >> information from the image sensor. > > What is unclear to me is that:: > a) as one gets more and more pixels > b) the well depth of the pixels goes down > ...10 years ago the pixels could hold 65K electrons > ...now they are lucky to hold 32K electrons > c) yet they are being sampled with 14-bit A/Ds > d) and end up with HDR dynamic range. > > A floating point numericalist would say "this cannot be" > Sampling 32K with 14 bits would still give you 8 electrons per bit level, which sounds reasonable... Terje -- - <Terje.Mathisen at tmsw.no> "almost all programming can be viewed as an exercise in caching"
[toc] | [prev] | [next] | [standalone]
| From | Quadibloc <jsavard@ecn.ab.ca> |
|---|---|
| Date | 2016-02-19 11:55 -0800 |
| Message-ID | <535c41ce-c1d9-4d3d-a829-94d18a468fe6@googlegroups.com> |
| In reply to | #33737 |
On Friday, February 19, 2016 at 10:02:48 AM UTC-7, Terje Mathisen wrote: > Sampling 32K with 14 bits would still give you 8 electrons per bit > level, which sounds reasonable... Odd, my calculations make that 2 electrons per level. John Savard
[toc] | [prev] | [next] | [standalone]
| From | Terje Mathisen <terje.mathisen@tmsw.no> |
|---|---|
| Date | 2016-02-19 21:14 +0100 |
| Message-ID | <na7t2g$ufs$1@gioia.aioe.org> |
| In reply to | #33739 |
Quadibloc wrote: > On Friday, February 19, 2016 at 10:02:48 AM UTC-7, Terje Mathisen wrote: > >> Sampling 32K with 14 bits would still give you 8 electrons per bit >> level, which sounds reasonable... > > Odd, my calculations make that 2 electrons per level. Mea Culpa! :-( As has been stated here before, at 16-20 Mpix on tiny sensors you are really looking for average values across multiple cells. Terje -- - <Terje.Mathisen at tmsw.no> "almost all programming can be viewed as an exercise in caching"
[toc] | [prev] | [next] | [standalone]
| From | MitchAlsup <MitchAlsup@aol.com> |
|---|---|
| Date | 2016-02-19 16:20 -0800 |
| Message-ID | <dbf6742a-079b-481d-b769-98440ca2939b@googlegroups.com> |
| In reply to | #33737 |
On Friday, February 19, 2016 at 11:02:48 AM UTC-6, Terje Mathisen wrote: > MitchAlsup wrote: > > What is unclear to me is that:: > > a) as one gets more and more pixels > > b) the well depth of the pixels goes down > > ...10 years ago the pixels could hold 65K electrons > > ...now they are lucky to hold 32K electrons > > c) yet they are being sampled with 14-bit A/Ds > > d) and end up with HDR dynamic range. > > > > A floating point numericalist would say "this cannot be" > > > Sampling 32K with 14 bits would still give you 8 electrons per bit > level, which sounds reasonable... A full well (32Ke-) is going to have 181e- of shot (poison) noise, and a maximum signal to noise ratio of 181 ! A signal to noise ratio of 7.5 bits. Yet we are using a 14-bit A/D to capture the data !!
[toc] | [prev] | [next] | [standalone]
| From | Terje Mathisen <terje.mathisen@tmsw.no> |
|---|---|
| Date | 2016-02-20 10:14 +0100 |
| Message-ID | <na9aqj$qlf$1@gioia.aioe.org> |
| In reply to | #33743 |
MitchAlsup wrote: > On Friday, February 19, 2016 at 11:02:48 AM UTC-6, Terje Mathisen wrote: >> MitchAlsup wrote: >>> What is unclear to me is that:: >>> a) as one gets more and more pixels >>> b) the well depth of the pixels goes down >>> ...10 years ago the pixels could hold 65K electrons >>> ...now they are lucky to hold 32K electrons >>> c) yet they are being sampled with 14-bit A/Ds >>> d) and end up with HDR dynamic range. >>> >>> A floating point numericalist would say "this cannot be" >>> >> Sampling 32K with 14 bits would still give you 8 electrons per bit >> level, which sounds reasonable... > > A full well (32Ke-) is going to have 181e- of shot (poison) noise, > and a maximum signal to noise ratio of 181 ! A signal to noise > ratio of 7.5 bits. Yet we are using a 14-bit A/D to capture the data !! > As long as the noise is somewhat proportional to the signal having more bits will at least give you higher dynamic range, i.e. some useful info from having more bits in the AD. The way I see it the vendors seems to compete on Mpix only, not on AD depths, so that would mean that they don't see any need to increase the sampling depth unless they actually get better pictures that way. Terje -- - <Terje.Mathisen at tmsw.no> "almost all programming can be viewed as an exercise in caching"
[toc] | [prev] | [next] | [standalone]
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Date | 2016-02-20 12:51 +0000 |
| Message-ID | <2016Feb20.135108@mips.complang.tuwien.ac.at> |
| In reply to | #33749 |
Terje Mathisen <terje.mathisen@tmsw.no> writes: >As long as the noise is somewhat proportional to the signal having more >bits will at least give you higher dynamic range, i.e. some useful info >from having more bits in the AD. Photon noise is proportional to the square root of the signal; there is also other noise that is at a low constant level. >The way I see it the vendors seems to compete on Mpix only, not on AD >depths, Some buyers go for many megapixels, some for fewer, so the vendors offer cameras with different numbers of megapixels; I guess there are also those who go for ADC resolution, so the vendors might choose ADC resolutions that only resolve more noise as Mitch Alsup suspects. - anton -- M. Anton Ertl Some things have to be seen to be believed anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen http://www.complang.tuwien.ac.at/anton/home.html
[toc] | [prev] | [next] | [standalone]
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Date | 2016-02-20 12:30 +0000 |
| Message-ID | <2016Feb20.133004@mips.complang.tuwien.ac.at> |
| In reply to | #33743 |
MitchAlsup <MitchAlsup@aol.com> writes: >A full well (32Ke-) is going to have 181e- of shot (poison) noise, >and a maximum signal to noise ratio of 181 ! A signal to noise >ratio of 7.5 bits. Yet we are using a 14-bit A/D to capture the data !! Sure. If we can get the noise down to 2 electrons for dark areas (say, where the signal is 5-10 electrons), the high resolution of the ADC benefits us, and that despite the SNR being even worse than for the bright areas. Concerning whether the pixels are treated as independent: In addition to the fact that each camera pixel measures only one colour and the other colours are supplied by the surrounding pixels, there is also lots of other postprocessing going on: smoothing to get rid of the noise, but also sharpening; these are antagonistic transformations, and my impression is that small and unsystematic differences in brightness are considered to be from noise and are smoothed away, while larger differences and structured differences (e.g., an edge) are considered to represent reality and are sharpened. As a result, if you have somewhat randomly-structured stuff like the leaves of a tree from afar, sometimes that gets smoothed into one green smear, and sometimes (if the differences are enough), it is sharpened. It's pretty obvious if part of the same tree is treated in one way, and another part in the other way. - anton -- M. Anton Ertl Some things have to be seen to be believed anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen http://www.complang.tuwien.ac.at/anton/home.html
[toc] | [prev] | [next] | [standalone]
| From | paul wallich <pw@panix.com> |
|---|---|
| Date | 2016-02-19 12:37 -0500 |
| Message-ID | <na7jtm$sq7$1@reader1.panix.com> |
| In reply to | #33735 |
On 2/19/16 10:09 AM, MitchAlsup wrote: > On Friday, February 19, 2016 at 8:30:59 AM UTC-6, BGB wrote: > >> the point is that at this point, the image sensors in cameras can >> generally get images with a higher bit depth, and support HDR, >> which can't really be expressed in JFIF JPEGs. JPEG then looses a >> lot of information from the image sensor. > > What is unclear to me is that:: a) as one gets more and more pixels > b) the well depth of the pixels goes down ...10 years ago the pixels > could hold 65K electrons ...now they are lucky to hold 32K electrons > c) yet they are being sampled with 14-bit A/Ds d) and end up with HDR > dynamic range. > > A floating point numericalist would say "this cannot be" If it helps any, so would an optics type. For the non-full-frame sensors, your pixels are way smaller than the conventional resolving power of the lens. So the output of any given pixel sensor isn't independent of the output of its neighbors, even at or near points/edges. Ironically, that might make the HDR results better-behaved. Do the algorithms treat such images as arrays of nominally-independent pixels, or as a continuum that happens to be sampled at particular points? paul
[toc] | [prev] | [next] | [standalone]
| From | Quadibloc <jsavard@ecn.ab.ca> |
|---|---|
| Date | 2016-02-19 11:58 -0800 |
| Message-ID | <be71b775-69d6-4aec-90a2-a9b084007595@googlegroups.com> |
| In reply to | #33738 |
On Friday, February 19, 2016 at 10:38:01 AM UTC-7, paul wallich wrote: > Do the algorithms treat such images as arrays of nominally-independent > pixels, or as a continuum that happens to be sampled at particular points? I have no way of knowing, but they _should_ do the latter for another reason... for color pictures, there is the Bayer pattern - individual pixels have single-color filters over them in an alternating pattern, so one has to derive from those pixels with green filters what the green value is at the locations of the pixels with red and blue filters. John Savard
[toc] | [prev] | [next] | [standalone]
| From | jim.brakefield@ieee.org |
|---|---|
| Date | 2016-02-19 14:29 -0800 |
| Message-ID | <846d3390-090a-41e6-9496-16b17bb6c2c5@googlegroups.com> |
| In reply to | #33735 |
On Friday, February 19, 2016 at 9:09:50 AM UTC-6, MitchAlsup wrote: > On Friday, February 19, 2016 at 8:30:59 AM UTC-6, BGB wrote: > > > the point is that at this point, the image sensors in cameras can > > generally get images with a higher bit depth, and support HDR, which > > can't really be expressed in JFIF JPEGs. JPEG then looses a lot of > > information from the image sensor. > > What is unclear to me is that:: > a) as one gets more and more pixels > b) the well depth of the pixels goes down > ...10 years ago the pixels could hold 65K electrons > ...now they are lucky to hold 32K electrons > c) yet they are being sampled with 14-bit A/Ds > d) and end up with HDR dynamic range. > > A floating point numericalist would say "this cannot be" For still images some cameras will do bracketed exposures automatically. By varying lens opening and exposure time one can get significant dynamic range? Jim Brakefield
[toc] | [prev] | [next] | [standalone]
| From | "James Van Buskirk" <not_valid@comcast.net> |
|---|---|
| Date | 2016-02-17 10:21 -0700 |
| Message-ID | <na2a2n$e0b$1@dont-email.me> |
| In reply to | #33703 |
"Nick Maclaren" wrote in message news:na1frv$usi$1@dont-email.me... > In article <i8b7cb5nn8ioj863g7b90bljpuq47857sj@4ax.com>, > Robert Wessel <robertwessel2@yahoo.com> wrote: > >On Tue, 16 Feb 2016 21:43:29 +0100, Morten Reistad > >>I was commenting on needing more than 8 bits in the exponent. I.e. > >>2^255. You could still square the distance measured in angstroms for > >>any point pair in the observable universe. > >My point was that intermediate results will often need much larger > >exponents. If you prefer, lets compute the volume of the universe > >instead, and you'll exceed 2**255 if the resolution is a few tens of > >meters. > Yes. And it's not just the square, either, because many algorithms > use much higher order polynomials. This is also the basis of the > old rule that the exponent range needs to be at least four times the > mantissa precision (i.e. to ensure that X^4 doesn't underflow). > I have seen programs overflow in IEEE 754 double precision purely > due to this effect, and that's 11 bits, not 8. I would have thought that Hadamard's inequality might be one of the more effective forces driving representations toward more exponent bits.
[toc] | [prev] | [next] | [standalone]
| From | nmm@wheeler.UUCP (Nick Maclaren) |
|---|---|
| Date | 2016-02-17 17:34 +0000 |
| Message-ID | <na2ava$hjn$1@dont-email.me> |
| In reply to | #33711 |
In article <na2a2n$e0b$1@dont-email.me>, James Van Buskirk <not_valid@comcast.net> wrote: > >> Yes. And it's not just the square, either, because many algorithms >> use much higher order polynomials. This is also the basis of the >> old rule that the exponent range needs to be at least four times the >> mantissa precision (i.e. to ensure that X^4 doesn't underflow). > >> I have seen programs overflow in IEEE 754 double precision purely >> due to this effect, and that's 11 bits, not 8. > >I would have thought that Hadamard's inequality might be one of >the more effective forces driving representations toward more >exponent bits. Not really. Determinants explode so fast that no sane number of bits is enough. That is one of the main reasons that matrices are often normalised so that (say) all diagonal elements are one and the original diagonal is kept as a separate scaling vector. Regards, Nick Maclaren.
[toc] | [prev] | [next] | [standalone]
| From | Quadibloc <jsavard@ecn.ab.ca> |
|---|---|
| Date | 2016-02-17 11:13 -0800 |
| Message-ID | <5a039d51-b915-4ca7-9435-b13823ef39fd@googlegroups.com> |
| In reply to | #33691 |
On Tuesday, February 16, 2016 at 11:41:26 AM UTC-7, robert...@yahoo.com wrote: > All the inputs and outputs > will be less than about 2**110, but you'll have to handle intermediate > results of 2**220. I was wondering why this would be, and then I realized: because one calculates distance by means of the square root of the sum of the squares of the coordinate differences. John Savard
[toc] | [prev] | [next] | [standalone]
| From | "wolfgang kern" <nowhere@never.at> |
|---|---|
| Date | 2016-02-16 19:39 +0100 |
| Message-ID | <n9vqch$15fd$1@gioia.aioe.org> |
| In reply to | #33687 |
Morten Reistad wrote: > Terje Mathisen <terje.mathisen@tmsw.no> wrote: >>Joe keane wrote: >>> I'd like to be able to have slightly less exponent, slightly more >>> mantissa. But it's so hard. >>If you want something slightly different, then you probably have to >>implement it yourself. The fastest method is probably to use pairs of >>doubles and convert to your storage format when loading/storing. > I wonder about the exponent sizes sometimes. The size of the > observable universe divided by the Planc length is around 1.4E61, or > representable with an exponent of ~204, well within 8 bits. I still > look for business cases for anything beyond that. I were once asked by client demands to have larger mantissa and exponent ranges than the standard IEE. I took the challenge and made up my own 256 bit mantissa plus an 16 bit 10^n valued exponent as an option for variables in my OS (but my OS is extremely far from being compatible to anything). And because my apart way allowed for any nibble based combination it can be defined (on user level) to support ie: 28+4 bit vars instead of or in addition to the 1+23+8 bit 'single precision'. Of course and unfortunately there isn't any hardware support for it. __ wolfgang
[toc] | [prev] | [next] | [standalone]
Page 2 of 3 — ← Prev page 1 [2] 3 Next page →
Back to top | Article view | comp.arch
csiph-web