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.16 by greg, Tue Nov 21 01:30:20 2023 UTC vs.
Revision 2.17 by greg, Tue Nov 28 00:39:56 2023 UTC

# Line 30 | Line 30 | typedef struct {
30   } RMATRIX;
31  
32   #define rmx_lval(rm,r,c)        ((rm)->mtx + (rm)->ncomp*((c)+(size_t)(rm)->ncols*(r)))
33 + #define rmx_val                 rmx_lval
34  
35   /* Initialize a RMATRIX struct but don't allocate array space */
36   extern RMATRIX  *rmx_new(int nr, int nc, int n);
# Line 45 | Line 46 | extern void    rmx_free(RMATRIX *rm);
46  
47   /* Resolve data type based on two input types (returns 0 for mismatch) */
48   extern int      rmx_newtype(int dtyp1, int dtyp2);
49 +
50 + /* Read matrix header from input stream (cannot be XML) */
51 + extern int      rmx_load_header(RMATRIX *rm, FILE *fp);
52 +
53 + /* Allocate & load post-header data from stream given type set in rm->dtype */
54 + extern int      rmx_load_data(RMATRIX *rm, FILE *fp);
55  
56   /* Load matrix from supported file type (NULL for stdin, '!' with command) */
57   extern RMATRIX  *rmx_load(const char *inspec, RMPref rmp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines