SCM

SCM Repository

[matrix] Diff of /pkg/Matrix/src/dtCMatrix.c
ViewVC logotype

Diff of /pkg/Matrix/src/dtCMatrix.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 588, Wed Mar 2 18:19:51 2005 UTC revision 677, Mon Mar 28 14:03:32 2005 UTC
# Line 3  Line 3 
3    
4  SEXP tsc_validate(SEXP x)  SEXP tsc_validate(SEXP x)
5  {  {
6        SEXP val;
7    
8        if (isString(val = check_scalar_string(GET_SLOT(x, Matrix_uploSym),
9                                               "LU", "uplo"))) return val;
10        if (isString(val = check_scalar_string(GET_SLOT(x, Matrix_diagSym),
11                                               "NU", "diag"))) return val;
12      return ScalarLogical(1);      return ScalarLogical(1);
13  }  }
14    
# Line 32  Line 38 
38  {  {
39      SEXP ans;      SEXP ans;
40      if (CHAR(STRING_ELT(GET_SLOT(x, Matrix_diagSym), 0))[0] != 'U')      if (CHAR(STRING_ELT(GET_SLOT(x, Matrix_diagSym), 0))[0] != 'U')
41          ans = csc_to_dgTMatrix(x);          ans = compressed_to_dgTMatrix(x, ScalarLogical(1));
42      else {                      /* unit triangular matrix */      else {                      /* unit triangular matrix */
43          SEXP islot = GET_SLOT(x, Matrix_iSym),          SEXP islot = GET_SLOT(x, Matrix_iSym),
44              pslot = GET_SLOT(x, Matrix_pSym);              pslot = GET_SLOT(x, Matrix_pSym);

Legend:
Removed from v.588  
changed lines
  Added in v.677

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge