Displaying 20 results from an estimated 22 matches for "csparse".
Did you mean:
sparse
2007 Dec 03
1
linking C/C++ external libraries.
Hi Everyone,
I'm trying to load some C++ code using dyn.load but I'm getting
unresolved symbols associated with some external libraries
(CSparse). I gather this is something to do with linking as the the
code compiles fine. However, I've passed
-L/home/jarrod/My_Programs/SuiteSparse/CSparse/Lib -lcsparse
to the complier (g++), either directly using R CMD SHLIB or as
PKG_LIBS in a Makevars file, and I cannot resolve the problem....
2006 Jan 11
2
Problem with making Matrix
Hi R-help citizens,
I'm having trouble making version 0.99-6 of Matrix on FreeBSD 6.0.
The error message is:
* Installing *source* package 'Matrix' ...
** libs
gcc -I/usr/local/lib/R/include -I/usr/local/include -D__NO_MATH_INLINES -fPIC -g -O2 -c Csparse.c -o Csparse.o
... numerous lines deleted ...
gcc -I/usr/local/lib/R/include -I/usr/local/include -D__NO_MATH_INLINES -fPIC -g -O2 -c triplet_to_col.c -o triplet_to_col.o
f77 -fPIC -g -O2 -c zpotf2.f -o zpotf2.o
f77 -fPIC -g -O2 -c zpotrf.f -o zpotrf.o
touch CHOLMOD.stamp UMFPACK.stamp C...
2007 Apr 16
1
colSum() in Matrix objects
Hi,
I'd like to simply add column-wise using Matrix objects (Csparse).
It looks like one can apply mosty any base function to these objects
(i.e., apply, colSums), but there is a nasty conversion to traditional
matrix objects if one does that.
Is there any workaround? I can see colSum listed in the help for Class
'CsparseMatrix' , but I wonder whether...
2020 Jul 21
2
trivial typo in ?Matrix::sparse.model.matrix.Rd
? "form" -> "from". Diff against latest SVN:
Index: sparse.model.matrix.Rd
===================================================================
--- sparse.model.matrix.Rd??? (revision 3336)
+++ sparse.model.matrix.Rd??? (working copy)
@@ -4,7 +4,7 @@
?\alias{fac2sparse}
?\alias{fac2Sparse}
?\description{Construct a sparse model or \dQuote{design} matrix,
-? form a formula
2008 Mar 28
0
"The Matrix" is approaching version 1.0-0
...------------------------------
Title: A Matrix package for R
Author: Douglas Bates <....> and Martin Maechler <....>
Maintainer: Doug and Martin <Matrix-authors at R-project.org>
Description: Classes and methods for dense and sparse matrices and
operations on them using Lapack, CSparse and CHOLMOD
--------------------------------------------------------------
The Matrix package provides efficient methods for several formal
(i.e. S4) classes of matrices where each of the actual classes are
some combination of the following three categories
1) dense or sparse
2) symmmetric, trian...
2008 Mar 28
0
"The Matrix" is approaching version 1.0-0
...------------------------------
Title: A Matrix package for R
Author: Douglas Bates <....> and Martin Maechler <....>
Maintainer: Doug and Martin <Matrix-authors at R-project.org>
Description: Classes and methods for dense and sparse matrices and
operations on them using Lapack, CSparse and CHOLMOD
--------------------------------------------------------------
The Matrix package provides efficient methods for several formal
(i.e. S4) classes of matrices where each of the actual classes are
some combination of the following three categories
1) dense or sparse
2) symmmetric, trian...
2009 Feb 11
1
Problem with R using pgi compiler on x86_64
...ng the current pgi compiler (8.0.2) for
AMD64 on a SLES9 system.
When I try to install "Matrix" everything is fine until the last step.
make[1]: Leaving directory `/tmp/R.INSTALL.TW3399/Matrix/src/AMD'
pgCC -L/usr/lib64 -L/usr/X11R6/lib64 -pgf90libs -o Matrix.so
CHMfactor.o Csparse.o TMatrix_as.o Tsparse.o init.o Mutils.o
chm_common.o cs.o cs_utils.o dense.o dgCMatrix.o dgTMatrix.o dgeMatrix.o
dpoMatrix.o dppMatrix.o dsCMatrix.o dsyMatrix.o dspMatrix.o dtCMatrix.o
dtTMatrix.o dtrMatrix.o dtpMatrix.o factorizations.o ldense.o
lgCMatrix.o sparseQR.o SPQR.a CHOLMOD.a COLAMD....
2010 Dec 01
1
Install package 'Matrix' problem
...ris 10. Compiler used is solstudio12.2. Attached is the configure script.
I then tried to install a recommended package called Matrix. The compilation failed with the following messages,
.......
CC -library=stlport4 -G -L/opt/csw/lib/sparcv9 -L/opt/solstudio12.2/prod/lib/v9 -o Matrix.so CHMfactor.o Csparse.o TMatrix_as.o Tsparse.o init.o Mutils.o chm_common.o cs.o cs_utils.o dense.o dgCMatrix.o dgTMatrix.o dgeMatrix.o dpoMatrix.o dppMatrix.o dsCMatrix.o dsyMatrix.o dspMatrix.o dtCMatrix.o dtTMatrix.o dtrMatrix.o dtpMatrix.o factorizations.o ldense.o lgCMatrix.o sparseQR.o abIndex.o CHOLMOD.a COLAMD.a...
2009 Feb 21
1
R-devel/Linux x64/Sun Studio 12: Problem with Matrix
...ed fine and R-devel runs, with the exception of package
Matrix where compilation crashes with the following message. The error
occurs during building of the recommended packages and also if Matrix is
compiled separately:
[...]
CC -G -lCstd -L/opt/sun/sunstudio12/lib/amd64 -o Matrix.so CHMfactor.o
Csparse.o TMatrix_as.o Tsparse.o init.o Mutils.o chm_common.o cs.o
cs_utils.o dense.o dgCMatrix.o dgTMatrix.o dgeMatrix.o dpoMatrix.o
dppMatrix.o dsCMatrix.o dsyMatrix.o dspMatrix.o dtCMatrix.o dtTMatrix.o
dtrMatrix.o dtpMatrix.o factorizations.o ldense.o lgCMatrix.o sparseQR.o
CHOLMOD.a COLAMD.a AMD.a -L/...
2016 Apr 20
0
Matrix: How create a _row-oriented_ sparse Matrix (=dgRMatrix)?
...> [5,] . . . . .
The reason for the above behavior has been
a) efficiency. All the subassignment ( `[<-` ) methods for
"RsparseMatrix" objects (of which "dsRMatrix" is a special case)
are implemented via TsparseMatrix.
b) because of the general attitude that Csparse (and Tsparse to
some extent) are well supported in Matrix,
and e.g. further operations on Rsparse matrices would *again*
go via T* or C* sparse ones, I had decided to keep things Tsparse.
[...]
> Trying with explicit coercion does not work:
>> as(Cc, "dgRMatrix&quo...
2016 Apr 19
2
Matrix: How create a _row-oriented_ sparse Matrix (=dgRMatrix)?
Using the Matrix package, how can I create a row-oriented sparse
Matrix from scratch populated with some data? By default a
column-oriented one is created and I'm aware of the note that the
package is optimized for column-oriented ones, but I'm only interested
in using it for holding my sparse row-oriented data and doing basic
subsetting by rows (even using drop=FALSE).
Here is what I
2009 Feb 11
1
Compiling Matrix on Solaris 10 x86-64 Sun Studio 12
...nclude -I/usr/include -I/usr/sfw/include -KPIC -O -I/opt/SUNWspro/prod/include -c CHMfactor.c -o CHMfactor.o
cc -m64 -I/home/choid/bin/R281/lib/R/include -I./UFconfig -I/usr/local/include -I/opt/SUNWspro/prod/include -I/usr/include -I/usr/sfw/include -KPIC -O -I/opt/SUNWspro/prod/include -c Csparse.c -o Csparse.o
cc -m64 -I/home/choid/bin/R281/lib/R/include -I./UFconfig -I/usr/local/include -I/opt/SUNWspro/prod/include -I/usr/include -I/usr/sfw/include -KPIC -O -I/opt/SUNWspro/prod/include -c TMatrix_as.c -o TMatrix_as.o
cc -m64 -I/home/choid/bin/R281/lib/R/include -I./UFconfig -I/usr/loc...
2007 Jan 01
2
matrix size
Hello everyone
Could anybody tell me how to set the following matrix?
n2<-matrix(nrow=10185,ncol=10185,seq(0,0,length=103734225))
R answer was
Error: cannot allocate vector of size 810423 Kb
Are there any solution? I tried to increase the memory size but it didn't work
G
This message has been scanned for viruses by TRENDMICRO,\ an...{{dropped}}
2018 Jan 18
1
wrong matrix dimension in sparseQR
Hi,
I came across a case when the dimensions of matrices returned by qr()
operated on a sparse matrix does not coincide with the initial matrix.
Here is a spinet code that should produce an example (one of many that I could provide):
?m=205
?n=199
?set.seed(7);
?a=matrix(rnorm(m*n), m, n)
?a[sample(seq(m*n), m*(n-4))]=0
?a=as(a, "Matrix")
?qa=qr(a);
?stopifnot(nrow(qa at R) ==
2020 Jul 21
3
trivial typo in ?Matrix::sparse.model.matrix.Rd
...x}) or a single
>> ?? factor (\code{fac2sparse}).
>> ?? The \code{fac2[Ss]parse()} functions are utilities, also used
> Thank you, Ben; corrected in my (not yet committed) development
> version.
>
> BTW, there will be another improvement there,
> deprecating 'giveCsparse = TRUE'
> and replacing it by 'repr = "C"'
>
> the latter allowing all three kind of sparseMatrix formats
> ("C", "R", "T") instead of just Csparse* and Tsparse*.
????? How I can learn more about this, including (a) 'repr = (...
2006 Oct 03
1
New versions of Matrix and lme4 packages for R-2.4.0
...versatile and you
are advised to read the help page and try its examples.
- Reorganization and simplification of source code (source package is
about 1/3 the previous size). Much greater use of virtual classes
in method definitions.
- LU and QR decompositions for sparse matrices using the CSparse
library of C functions written by Tim Davis and documented in his
2006 SIAM book "Direct Methods for Sparse Linear Systems". New
function Cholesky (in addition to function chol) that allows the
full range of CHOLMOD library options for sparse Cholesky
decompositions.
- New cla...
2006 Oct 03
1
New versions of Matrix and lme4 packages for R-2.4.0
...versatile and you
are advised to read the help page and try its examples.
- Reorganization and simplification of source code (source package is
about 1/3 the previous size). Much greater use of virtual classes
in method definitions.
- LU and QR decompositions for sparse matrices using the CSparse
library of C functions written by Tim Davis and documented in his
2006 SIAM book "Direct Methods for Sparse Linear Systems". New
function Cholesky (in addition to function chol) that allows the
full range of CHOLMOD library options for sparse Cholesky
decompositions.
- New cla...
2009 Oct 24
1
operations on sparse matrices, and dense intermediary steps
...pMatrix(nrow, ncol,
i = sample(nrow, nnz, replace = TRUE),
j = sample(ncol, nnz, replace = TRUE),
x = rand.x(nnz))
}
## (original ir a term x doc matrix of the entire wikipedia)
mm <- rSpMatrix(793251, 1027355, nnz = 205746204)
# make it column based:
mm <- as(mm, "CsparseMatrix")
a=mm[1,,drop=F]#this takes close to 30 seconds on a 3Ghz machine
Thanks,
- -Jose
- --
=== I'm learning a new keyboard layout. I type slowly. Please excuse
typos and slower-that-usual responses. Thanks for your patience===
Jose Quesada, PhD.
Max Planck Institute,
Center for Adapti...
2009 Jan 20
1
Creating a Sparse Matrix from a Sparse Vector
Hello,
I am working with a sparse matrix that is approx. 13,900 by 14,100. My
goal is to select a row out of the matrix and create a new matrix with that
row repeated 13,900 times without having to do any looping. Example:
Starting Matrix:
exampleMatrix
3 x 4 sparse Matrix of class "dgCMatrix"
[1,] 1 . . .
[2,] . 1 . 0.5
[3,] . . 1 ..
New Matrix:..
newExampleMatrix
3 x 4 sparse
2016 Jan 04
2
R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!"
The bulk is on my forums - the final post for today is:
Results to date:
A. It looks like I am going to need a newer compiler for C - xlc/xlC V11
apparently does not understand this code:
"/data/prj/cran/R-3.2.3/src/main/memory.c", line 2149.31: 1506-046 (S)
Syntax error.
I will have to check if R-devel has different code before asking for
assistence.
+2139 #ifdef