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

Comparing ray/src/util/rmatrix.c (file contents):
Revision 2.27 by greg, Mon Apr 9 21:36:45 2018 UTC vs.
Revision 2.28 by greg, Wed Jun 13 18:36:38 2018 UTC

# Line 611 | Line 611 | rmx_scale(RMATRIX *rm, const double sf[])
611                  for (k = rm->ncomp; k--; )
612                      rmx_lval(rm,i,j,k) *= sf[k];
613  
614 +        if (rm->info)
615 +                rmx_addinfo(rm, "Applied scalar\n");
616          return(1);
617   }
618  
# Line 626 | Line 628 | rmx_transform(const RMATRIX *msrc, int n, const double
628          dnew = rmx_alloc(msrc->nrows, msrc->ncols, n);
629          if (dnew == NULL)
630                  return(NULL);
631 +        if (msrc->info) {
632 +                char    buf[128];
633 +                sprintf(buf, "Applied %dx%d matrix transform\n",
634 +                                dnew->ncomp, msrc->ncomp);
635 +                rmx_addinfo(dnew, msrc->info);
636 +                rmx_addinfo(dnew, buf);
637 +        }
638          dnew->dtype = msrc->dtype;
639          for (i = dnew->nrows; i--; )
640              for (j = dnew->ncols; j--; )

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines