ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rmatrix.h
(Generate patch)

Comparing ray/src/util/rmatrix.h (file contents):
Revision 2.18 by greg, Tue Nov 28 21:07:20 2023 UTC vs.
Revision 2.19 by greg, Fri Dec 1 02:05:00 2023 UTC

# Line 13 | Line 13 | extern "C" {
13   #endif
14  
15   /* Preferred BSDF component:
16 <        transmission, reflection front (normal side), reflection back */
17 < typedef enum {RMPtrans=0, RMPreflF, RMPreflB} RMPref;
16 >        none, transmission, reflection front (normal side), reflection back */
17 > typedef enum {RMPnone=-1, RMPtrans=0, RMPreflF, RMPreflB} RMPref;
18  
19   /* General [row][col][cmp] component matrix */
20   typedef struct {
# Line 41 | Line 41 | extern int     rmx_prepare(RMATRIX *rm);
41   /* Call rmx_new() and rmx_prepare() */
42   extern RMATRIX  *rmx_alloc(int nr, int nc, int n);
43  
44 < /* Free a RMATRIX array */
44 > /* Clear state by freeing info and matrix data */
45 > extern void     rmx_reset(RMATRIX *rm);
46 >
47 > /* Free an RMATRIX struct and data */
48   extern void     rmx_free(RMATRIX *rm);
49  
50   /* Resolve data type based on two input types (returns 0 for mismatch) */
# Line 62 | Line 65 | extern RMATRIX *rmx_load(const char *inspec, RMPref rm
65   /* Append header information associated with matrix data */
66   extern int      rmx_addinfo(RMATRIX *rm, const char *info);
67  
68 < /* Write matrix to file type indicated by dtype */
68 > /* Finish writing header data with resolution and format, returning type used */
69 > extern int      rmx_write_header(const RMATRIX *rm, int dtype, FILE *fp);
70 >
71 > /* Write out matrix data (usually by row) */
72 > extern int      rmx_write_data(const double *dp, int nc, int len,
73 >                                int dtype, FILE *fp);
74 >
75 > /* Write matrix using file format indicated by dtype */
76   extern int      rmx_write(const RMATRIX *rm, int dtype, FILE *fp);
77  
78   /* Allocate and assign square identity matrix with n components */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines