ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rmatrix.c
Revision 2.78 - (view) (download) (annotate) - [select for diffs]
Thu Feb 29 03:11:13 2024 UTC (4 weeks ago) by greg
Branch: MAIN
CVS Tags: HEAD
Changes since 2.77: +2 -2 lines
Diff to previous 2.77
fix(rcomb): Spectral scanlines were being output in reverse order

Revision 2.77 - (view) (download) (annotate) - [select for diffs]
Thu Dec 21 23:58:05 2023 UTC (3 months ago) by greg
Branch: MAIN
Changes since 2.76: +4 -2 lines
Diff to previous 2.76
fix(rmtxop,rcomb): Added missing error message when input is unavailable

Revision 2.76 - (view) (download) (annotate) - [select for diffs]
Tue Dec 12 18:45:53 2023 UTC (3 months, 2 weeks ago) by greg
Branch: MAIN
Changes since 2.75: +9 -5 lines
Diff to previous 2.75
fix: made rmx_transfer_data() work when destination is memory-mapped

Revision 2.75 - (view) (download) (annotate) - [select for diffs]
Mon Dec 11 19:00:22 2023 UTC (3 months, 2 weeks ago) by greg
Branch: MAIN
Changes since 2.74: +4 -2 lines
Diff to previous 2.74
fix(rmtxop,rmtxcomb): Fixed -fc option for spectral output

Revision 2.74 - (view) (download) (annotate) - [select for diffs]
Fri Dec 8 00:12:31 2023 UTC (3 months, 2 weeks ago) by greg
Branch: MAIN
Changes since 2.73: +4 -4 lines
Diff to previous 2.73
fix(rmtxop,rmtxcomb): Eliminated the option of spectral output with 3 components

Revision 2.73 - (view) (download) (annotate) - [select for diffs]
Wed Dec 6 17:57:34 2023 UTC (3 months, 3 weeks ago) by greg
Branch: MAIN
Changes since 2.72: +25 -1 lines
Diff to previous 2.72
refactor(rmtxcomb): Added library function to transfer matrix data

Revision 2.72 - (view) (download) (annotate) - [select for diffs]
Tue Dec 5 21:45:39 2023 UTC (3 months, 3 weeks ago) by greg
Branch: MAIN
Changes since 2.71: +2 -2 lines
Diff to previous 2.71
fix(rmtxop,rmtxcomb): Fixed bug in ASCII matrix output

Revision 2.71 - (view) (download) (annotate) - [select for diffs]
Tue Dec 5 21:13:38 2023 UTC (3 months, 3 weeks ago) by greg
Branch: MAIN
Changes since 2.70: +4 -3 lines
Diff to previous 2.70
fix(rmtxcomb): Additional bug fixes

Revision 2.70 - (view) (download) (annotate) - [select for diffs]
Tue Dec 5 01:06:10 2023 UTC (3 months, 3 weeks ago) by greg
Branch: MAIN
Changes since 2.69: +2 -2 lines
Diff to previous 2.69
feat(rmtxcomb): Initial check-in of new matrix combining tool

Revision 2.69 - (view) (download) (annotate) - [select for diffs]
Mon Dec 4 22:02:40 2023 UTC (3 months, 3 weeks ago) by greg
Branch: MAIN
Changes since 2.68: +21 -13 lines
Diff to previous 2.68
feat: Allow copy to be made of unallocated matrix in rmx_copy()

Revision 2.68 - (view) (download) (annotate) - [select for diffs]
Sat Dec 2 16:28:35 2023 UTC (3 months, 3 weeks ago) by greg
Branch: MAIN
Changes since 2.67: +19 -18 lines
Diff to previous 2.67
feat: Made rmatrix i/o routines a little more forgiving of unknown # rows

Revision 2.67 - (view) (download) (annotate) - [select for diffs]
Fri Dec 1 02:05:00 2023 UTC (3 months, 3 weeks ago) by greg
Branch: MAIN
Changes since 2.66: +120 -127 lines
Diff to previous 2.66
refactor(rmtxop): Changed rmatrix library interface for by row matrix output

Revision 2.66 - (view) (download) (annotate) - [select for diffs]
Tue Nov 28 21:28:11 2023 UTC (3 months, 4 weeks ago) by greg
Branch: MAIN
Changes since 2.65: +3 -8 lines
Diff to previous 2.65
perf(rmtxop): Eliminated unnecessary loop for writing double matrix data

Revision 2.65 - (view) (download) (annotate) - [select for diffs]
Tue Nov 28 21:07:20 2023 UTC (3 months, 4 weeks ago) by greg
Branch: MAIN
Changes since 2.64: +80 -93 lines
Diff to previous 2.64
refactor: Added ability to read matrix data a row at a time

Revision 2.64 - (view) (download) (annotate) - [select for diffs]
Tue Nov 28 16:19:31 2023 UTC (3 months, 4 weeks ago) by greg
Branch: MAIN
Changes since 2.63: +9 -10 lines
Diff to previous 2.63
fix(rmtxop): fine-tuned header output for spectral data

Revision 2.63 - (view) (download) (annotate) - [select for diffs]
Tue Nov 28 00:46:23 2023 UTC (3 months, 4 weeks ago) by greg
Branch: MAIN
Changes since 2.62: +8 -7 lines
Diff to previous 2.62
refactor: Changed return value for rmx_load_header() to true/false

Revision 2.62 - (view) (download) (annotate) - [select for diffs]
Tue Nov 28 00:39:56 2023 UTC (3 months, 4 weeks ago) by greg
Branch: MAIN
Changes since 2.61: +112 -83 lines
Diff to previous 2.61
refactor: Separated header and data loading from matrices (except XMLs)

Revision 2.61 - (view) (download) (annotate) - [select for diffs]
Mon Nov 27 22:04:45 2023 UTC (3 months, 4 weeks ago) by greg
Branch: MAIN
Changes since 2.60: +4 -7 lines
Diff to previous 2.60
feat(rmtxop): Added symbolic transforms to -c option and made -s apply after any such transform, so both may be used simultaneously

Revision 2.60 - (view) (download) (annotate) - [select for diffs]
Tue Nov 21 01:30:20 2023 UTC (4 months ago) by greg
Branch: MAIN
Changes since 2.59: +134 -26 lines
Diff to previous 2.59
feat(rmtxop): Added handling of Radiance spectral pictures as matrices

Revision 2.59 - (view) (download) (annotate) - [select for diffs]
Sat Jul 1 15:25:26 2023 UTC (8 months, 3 weeks ago) by greg
Branch: MAIN
CVS Tags: rad5R4
Changes since 2.58: +2 -2 lines
Diff to previous 2.58
fix(rmtxop): potential overrun of #? header ID

Revision 2.58 - (view) (download) (annotate) - [select for diffs]
Thu May 18 23:55:10 2023 UTC (10 months, 1 week ago) by greg
Branch: MAIN
Changes since 2.57: +19 -12 lines
Diff to previous 2.57
perf: made EXPOSURE and COLORCORR handling more consistent across types

Revision 2.57 - (view) (download) (annotate) - [select for diffs]
Mon Mar 14 23:28:14 2022 UTC (2 years ago) by greg
Branch: MAIN
Changes since 2.56: +2 -2 lines
Diff to previous 2.56
fix(rmtxop): Fixed recently introduced bug in RGBE/XYZE load function

Revision 2.56 - (view) (download) (annotate) - [select for diffs]
Fri Mar 11 01:11:13 2022 UTC (2 years ago) by greg
Branch: MAIN
Changes since 2.55: +5 -5 lines
Diff to previous 2.55
perf(rmtxop): Minor tweak for transpose to improve mmap efficiency

Revision 2.55 - (view) (download) (annotate) - [select for diffs]
Sun Mar 6 17:21:49 2022 UTC (2 years ago) by greg
Branch: MAIN
Changes since 2.54: +3 -3 lines
Diff to previous 2.54
fix(rmtxop): Fixed bug introduced in previous change for transpose operation

Revision 2.54 - (view) (download) (annotate) - [select for diffs]
Sat Mar 5 15:33:09 2022 UTC (2 years ago) by greg
Branch: MAIN
Changes since 2.53: +7 -14 lines
Diff to previous 2.53
perf(rmtxop): realized simpler solution to output of RGBE or XYZE from 1 chan

Revision 2.53 - (view) (download) (annotate) - [select for diffs]
Sat Mar 5 01:45:21 2022 UTC (2 years ago) by greg
Branch: MAIN
Changes since 2.52: +65 -52 lines
Diff to previous 2.52
refactor(rmtxop): Changed matrix array access macros

Revision 2.52 - (view) (download) (annotate) - [select for diffs]
Fri Mar 4 17:17:28 2022 UTC (2 years ago) by greg
Branch: MAIN
Changes since 2.51: +24 -22 lines
Diff to previous 2.51
perf(rmtxop): Reduced memory use when writing HDR output from single channel

Revision 2.51 - (view) (download) (annotate) - [select for diffs]
Fri Mar 4 02:07:34 2022 UTC (2 years ago) by greg
Branch: MAIN
Changes since 2.50: +3 -2 lines
Diff to previous 2.50
perf(rmtxop): Turned off memory-mapped input for files < 1 MByte

Revision 2.50 - (view) (download) (annotate) - [select for diffs]
Fri Mar 4 01:27:12 2022 UTC (2 years ago) by greg
Branch: MAIN
Changes since 2.49: +95 -53 lines
Diff to previous 2.49
perf(rmtxop): Added memory-mapping for double matrices

Revision 2.49 - (view) (download) (annotate) - [select for diffs]
Thu Mar 3 03:55:13 2022 UTC (2 years ago) by greg
Branch: MAIN
Changes since 2.48: +2 -2 lines
Diff to previous 2.48
feat: Added float and double alignment to i/o routines for future mmap() use

Revision 2.48 - (view) (download) (annotate) - [select for diffs]
Thu Mar 18 00:34:31 2021 UTC (3 years ago) by greg
Branch: MAIN
Changes since 2.47: +20 -2 lines
Diff to previous 2.47
fix: added check for primaries to write XYZE file

Revision 2.47 - (view) (download) (annotate) - [select for diffs]
Fri Jan 22 16:19:15 2021 UTC (3 years, 2 months ago) by greg
Branch: MAIN
Changes since 2.46: +4 -2 lines
Diff to previous 2.46
fix: reinstated interpretation of NULL file name as stdin, so dctimestep works

Revision 2.46 - (view) (download) (annotate) - [select for diffs]
Tue Jan 19 23:32:00 2021 UTC (3 years, 2 months ago) by greg
Branch: MAIN
Changes since 2.45: +11 -9 lines
Diff to previous 2.45
feat: Added -rf and -rb options to rmtxop to load XML reflectance matrices

Revision 2.45 - (view) (download) (annotate) - [select for diffs]
Fri Jan 15 02:46:28 2021 UTC (3 years, 2 months ago) by greg
Branch: MAIN
Changes since 2.44: +2 -2 lines
Diff to previous 2.44
fix: fixed malloc() call overflow for large matrices

Revision 2.44 - (view) (download) (annotate) - [select for diffs]
Thu May 7 18:45:16 2020 UTC (3 years, 10 months ago) by greg
Branch: MAIN
CVS Tags: rad5R3
Changes since 2.43: +2 -2 lines
Diff to previous 2.43
Fixed silly/fatal error in previous modifications

Revision 2.43 - (view) (download) (annotate) - [select for diffs]
Thu Mar 26 18:05:44 2020 UTC (4 years ago) by greg
Branch: MAIN
Changes since 2.42: +3 -2 lines
Diff to previous 2.42
Better fix to bug in last change

Revision 2.42 - (view) (download) (annotate) - [select for diffs]
Thu Mar 26 18:04:24 2020 UTC (4 years ago) by greg
Branch: MAIN
Changes since 2.41: +2 -3 lines
Diff to previous 2.41
Fixed bug in last change

Revision 2.41 - (view) (download) (annotate) - [select for diffs]
Thu Mar 26 18:01:26 2020 UTC (4 years ago) by greg
Branch: MAIN
Changes since 2.40: +13 -8 lines
Diff to previous 2.40
Minor efficiency improvements

Revision 2.40 - (view) (download) (annotate) - [select for diffs]
Wed Mar 25 01:51:09 2020 UTC (4 years ago) by greg
Branch: MAIN
Changes since 2.39: +21 -2 lines
Diff to previous 2.39
Changed rmtxop and dctimestep to undo any exposure on Radiance input pictures

Revision 2.39 - (view) (download) (annotate) - [select for diffs]
Sat Dec 28 18:05:14 2019 UTC (4 years, 3 months ago) by greg
Branch: MAIN
Changes since 2.38: +1 -4 lines
Diff to previous 2.38
Removed redundant include files

Revision 2.38 - (view) (download) (annotate) - [select for diffs]
Tue Sep 10 17:22:55 2019 UTC (4 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.37: +2 -2 lines
Diff to previous 2.37
Info clarification

Revision 2.37 - (view) (download) (annotate) - [select for diffs]
Wed Sep 4 00:03:05 2019 UTC (4 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.36: +3 -3 lines
Diff to previous 2.36
Fixed binary mode setting

Revision 2.36 - (view) (download) (annotate) - [select for diffs]
Tue Sep 3 23:43:07 2019 UTC (4 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.35: +2 -1 lines
Diff to previous 2.35
Minor changes should not affect behavior

Revision 2.35 - (view) (download) (annotate) - [select for diffs]
Wed Aug 14 18:20:02 2019 UTC (4 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.34: +16 -2 lines
Diff to previous 2.34
Added explicit byte-swap checks in headers using BigEndian= line

Revision 2.34 - (view) (download) (annotate) - [select for diffs]
Mon Aug 12 20:38:19 2019 UTC (4 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.33: +2 -2 lines
Diff to previous 2.33
Added warning about divide-by-zero to matrix information header

Revision 2.33 - (view) (download) (annotate) - [select for diffs]
Mon Aug 12 18:15:44 2019 UTC (4 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.32: +35 -36 lines
Diff to previous 2.32
Made checks more compact and consistent

Revision 2.32 - (view) (download) (annotate) - [select for diffs]
Mon Aug 12 04:46:34 2019 UTC (4 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.31: +3 -1 lines
Diff to previous 2.31
Forgot to check for no memory

Revision 2.31 - (view) (download) (annotate) - [select for diffs]
Mon Aug 12 04:12:57 2019 UTC (4 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.30: +7 -1 lines
Diff to previous 2.30
Special case for vector transpose

Revision 2.30 - (view) (download) (annotate) - [select for diffs]
Fri Oct 19 00:21:31 2018 UTC (5 years, 5 months ago) by greg
Branch: MAIN
Changes since 2.29: +5 -2 lines
Diff to previous 2.29
Made ASCII output sensitive to matrix precision

Revision 2.29 - (view) (download) (annotate) - [select for diffs]
Thu Aug 2 18:33:50 2018 UTC (5 years, 7 months ago) by greg
Branch: MAIN
CVS Tags: rad5R2
Changes since 2.28: +2 -2 lines
Diff to previous 2.28
Created MAXFMTLEN to guard against buffer overrun attacks in header input

Revision 2.28 - (view) (download) (annotate) - [select for diffs]
Wed Jun 13 18:36:38 2018 UTC (5 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.27: +10 -1 lines
Diff to previous 2.27
Improved commenting on matrix operations for rmtxop

Revision 2.27 - (view) (download) (annotate) - [select for diffs]
Mon Apr 9 21:36:45 2018 UTC (5 years, 11 months ago) by greg
Branch: MAIN
Changes since 2.26: +4 -4 lines
Diff to previous 2.26
Saved a little time and memory when writing out RGBE data

Revision 2.26 - (view) (download) (annotate) - [select for diffs]
Mon Apr 9 21:30:07 2018 UTC (5 years, 11 months ago) by greg
Branch: MAIN
Changes since 2.25: +7 -23 lines
Diff to previous 2.25
Made double i/o more efficient by avoiding unnecessary element copies

Revision 2.25 - (view) (download) (annotate) - [select for diffs]
Mon Aug 28 15:59:46 2017 UTC (6 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.24: +59 -1 lines
Diff to previous 2.24
Added element-wise multiplication and division to rmtxop command

Revision 2.24 - (view) (download) (annotate) - [select for diffs]
Tue Aug 30 15:11:22 2016 UTC (7 years, 6 months ago) by greg
Branch: MAIN
CVS Tags: rad5R1
Changes since 2.23: +2 -3 lines
Diff to previous 2.23
Re-removed long double promotion, which I'd already done and undone previously!

Revision 2.23 - (view) (download) (annotate) - [select for diffs]
Tue Aug 30 14:54:08 2016 UTC (7 years, 6 months ago) by greg
Branch: MAIN
Changes since 2.22: +3 -2 lines
Diff to previous 2.22
Force promotion to long double

Revision 2.22 - (view) (download) (annotate) - [select for diffs]
Thu Aug 18 17:57:57 2016 UTC (7 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.21: +4 -10 lines
Diff to previous 2.21
Changed to using SET_FILE_BINARY() where possible

Revision 2.21 - (view) (download) (annotate) - [select for diffs]
Thu Aug 18 00:52:48 2016 UTC (7 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.20: +6 -5 lines
Diff to previous 2.20
Switched over to more efficient fread/fwrite replacements getbinary/putbinary

Revision 2.20 - (view) (download) (annotate) - [select for diffs]
Sun Mar 6 01:13:18 2016 UTC (8 years ago) by schorsch
Branch: MAIN
Changes since 2.19: +5 -4 lines
Diff to previous 2.19
Prepare for SCons build on Win32 and Win64

Revision 2.19 - (view) (download) (annotate) - [select for diffs]
Tue Feb 2 18:02:32 2016 UTC (8 years, 1 month ago) by greg
Branch: MAIN
Changes since 2.18: +2 -2 lines
Diff to previous 2.18
Moved declaration of popen to paths.h and put convert_command() into module

Revision 2.18 - (view) (download) (annotate) - [select for diffs]
Thu Aug 27 04:07:05 2015 UTC (8 years, 7 months ago) by greg
Branch: MAIN
CVS Tags: rad5R0
Changes since 2.17: +2 -1 lines
Diff to previous 2.17
Make sure result from loading XML file is ASCII

Revision 2.17 - (view) (download) (annotate) - [select for diffs]
Wed Jul 22 04:47:51 2015 UTC (8 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.16: +12 -7 lines
Diff to previous 2.16
Moved some file settings around to improve logic

Revision 2.16 - (view) (download) (annotate) - [select for diffs]
Wed Jul 22 04:29:56 2015 UTC (8 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.15: +2 -3 lines
Diff to previous 2.15
Reduced precision of multiplies in favor of time when little differ found

Revision 2.15 - (view) (download) (annotate) - [select for diffs]
Fri May 8 18:25:03 2015 UTC (8 years, 10 months ago) by greg
Branch: MAIN
Changes since 2.14: +2 -1 lines
Diff to previous 2.14
Added rtprocess.h needed for popen() under Windows

Revision 2.14 - (view) (download) (annotate) - [select for diffs]
Mon May 4 23:27:04 2015 UTC (8 years, 10 months ago) by greg
Branch: MAIN
Changes since 2.13: +4 -2 lines
Diff to previous 2.13
Minor type-checking fix

Revision 2.13 - (view) (download) (annotate) - [select for diffs]
Mon May 4 20:53:21 2015 UTC (8 years, 10 months ago) by greg
Branch: MAIN
Changes since 2.12: +28 -11 lines
Diff to previous 2.12
Added the ability to read matrix inputs from commands as well as files

Revision 2.12 - (view) (download) (annotate) - [select for diffs]
Fri Jan 23 01:14:20 2015 UTC (9 years, 2 months ago) by greg
Branch: MAIN
Changes since 2.11: +5 -7 lines
Diff to previous 2.11
Fixed rmx_identity(), which was incorrect as first written but never used

Revision 2.11 - (view) (download) (annotate) - [select for diffs]
Tue Dec 16 20:21:46 2014 UTC (9 years, 3 months ago) by greg
Branch: MAIN
Changes since 2.10: +2 -1 lines
Diff to previous 2.10
Fixed output format for ASCII from ASCII inputs

Revision 2.10 - (view) (download) (annotate) - [select for diffs]
Thu Sep 18 23:20:12 2014 UTC (9 years, 6 months ago) by greg
Branch: MAIN
CVS Tags: rad4R2P2
Changes since 2.9: +3 -3 lines
Diff to previous 2.9
Took out unreliable call to ftell()

Revision 2.9 - (view) (download) (annotate) - [select for diffs]
Thu Aug 28 05:59:42 2014 UTC (9 years, 7 months ago) by greg
Branch: MAIN
CVS Tags: rad4R2P1
Changes since 2.8: +2 -2 lines
Diff to previous 2.8
Bug fix pointed out by Andy McNeil

Revision 2.8 - (view) (download) (annotate) - [select for diffs]
Wed Aug 27 13:33:47 2014 UTC (9 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.7: +6 -5 lines
Diff to previous 2.7
Bug fixes in matrix concatenation

Revision 2.7 - (view) (download) (annotate) - [select for diffs]
Tue Aug 5 21:45:05 2014 UTC (9 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.6: +4 -1 lines
Diff to previous 2.6
Added missing _O_BINARY setting for Windows

Revision 2.6 - (view) (download) (annotate) - [select for diffs]
Sat Aug 2 17:10:43 2014 UTC (9 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.5: +56 -27 lines
Diff to previous 2.5
Made rmtxop output the same type as lesser of inputs by default

Revision 2.5 - (view) (download) (annotate) - [select for diffs]
Fri Aug 1 23:37:24 2014 UTC (9 years, 7 months ago) by greg
Branch: MAIN
Changes since 2.4: +47 -3 lines
Diff to previous 2.4
Maintain header information in matrix structure

Revision 2.4 - (view) (download) (annotate) - [select for diffs]
Thu Jul 24 16:28:17 2014 UTC (9 years, 8 months ago) by greg
Branch: MAIN
CVS Tags: rad4R2
Changes since 2.3: +9 -3 lines
Diff to previous 2.3
Made NROWS/NCOLS more consistent with resolution string

Revision 2.3 - (view) (download) (annotate) - [select for diffs]
Tue Jul 8 16:39:41 2014 UTC (9 years, 8 months ago) by greg
Branch: MAIN
Changes since 2.2: +2 -2 lines
Diff to previous 2.2
Removed unnecessary address operators from function ids.

Revision 2.2 - (view) (download) (annotate) - [select for diffs]
Sat May 31 19:21:21 2014 UTC (9 years, 9 months ago) by greg
Branch: MAIN
Changes since 2.1: +13 -19 lines
Diff to previous 2.1
Bug fixes

Revision 2.1 - (view) (download) (annotate) - [select for diffs]
Sat May 31 05:02:37 2014 UTC (9 years, 10 months ago) by greg
Branch: MAIN
Created rmtxop command, need to test and debug

Convenience Links

Links to HEAD: (view) (download) (annotate) Links to MAIN: (view) (download) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a