search for: readmm

Displaying 11 results from an estimated 11 matches for "readmm".

Did you mean: readme
2016 Apr 20
6
Solving sparse, singular systems of equations
...rix(c(-10,10,0),nrow=3,ncol=1)A %*% x #Error in lsfit(A, b) : only 3 cases, but 4 variableslsfit(A,b)#solves the system, but fails belowsolve(qr(A, LAPACK=TRUE),b)#Error in qr.solve(A, b) : singular matrix 'a' in solveqr.solve(A,b) #matrices used in my actual problem (see attached files)A = readMM("A.txt")b = readMM("b.txt") #Error in as(x, "matrix")[i, , drop = drop] : subscript out of boundssolve(qr(A, LAPACK=TRUE),b) -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: A.txt URL: <https://stat.ethz.ch/...
2007 May 15
1
Matrix package: writeMM
Hi, I'm finding that readMM() cannot read a file written with writeMM(). Example: library(Matrix) a = Matrix(c(1,0,3,0,0,5), 10, 10) a = as(a, "CsparseMatrix") writeMM(a, "kk.mm") b = readMM("kk.mm") Error in validObject(.Object) : invalid class "dgTMatrix" object: all row indices...
2016 Apr 20
0
Solving sparse, singular systems of equations
...10,0),nrow=3,ncol=1)A %*% x > #Error in lsfit(A, b) : only 3 cases, but 4 variableslsfit(A,b)#solves the system, but fails belowsolve(qr(A, LAPACK=TRUE),b)#Error in qr.solve(A, b) : singular matrix 'a' in solveqr.solve(A,b) > #matrices used in my actual problem (see attached files)A = readMM("A.txt")b = readMM("b.txt") > #Error in as(x, "matrix")[i, , drop = drop] : subscript out of boundssolve(qr(A, LAPACK=TRUE),b) Your code is a mess. A singular square system of linear equations has an infinity of solutions if a solution exists at all. How that wor...
2016 Apr 20
0
Solving sparse, singular systems of equations
...A > %*% x > #Error in lsfit(A, b) : only 3 cases, but 4 variableslsfit(A,b)#solves the > system, but fails belowsolve(qr(A, LAPACK=TRUE),b)#Error in qr.solve(A, b) > : singular matrix 'a' in solveqr.solve(A,b) > #matrices used in my actual problem (see attached files)A = > readMM("A.txt")b = readMM("b.txt") > #Error in as(x, "matrix")[i, , drop = drop] : subscript out of > boundssolve(qr(A, LAPACK=TRUE),b) > > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, se...
2016 Apr 20
0
Solving sparse, singular systems of equations
...=3,ncol=1)A %*% x >#Error in lsfit(A, b) : only 3 cases, but 4 variableslsfit(A,b)#solves >the system, but fails belowsolve(qr(A, LAPACK=TRUE),b)#Error in >qr.solve(A, b) : singular matrix 'a' in solveqr.solve(A,b) >#matrices used in my actual problem (see attached files)A = >readMM("A.txt")b = readMM("b.txt") >#Error in as(x, "matrix")[i, , drop = drop] : subscript out of >boundssolve(qr(A, LAPACK=TRUE),b) > > > >------------------------------------------------------------------------ > >________________________________...
2016 Apr 20
1
Solving sparse, singular systems of equations
...10,0),nrow=3,ncol=1)A %*% x > #Error in lsfit(A, b) : only 3 cases, but 4 variableslsfit(A,b)#solves the system, but fails belowsolve(qr(A, LAPACK=TRUE),b)#Error in qr.solve(A, b) : singular matrix 'a' in solveqr.solve(A,b) > #matrices used in my actual problem (see attached files)A = readMM("A.txt")b = readMM("b.txt") > #Error in as(x, "matrix")[i, , drop = drop] : subscript out of boundssolve(qr(A, LAPACK=TRUE),b) Your code is a mess. A singular square system of linear equations has an infinity of solutions if a solution exists at all. How that wor...
2012 Dec 27
2
Help reading matrixmarket files
I'm trying to read data a program produces in matrixmarket array format into R and its giving me fits. I've tried read.MM (below) and readMM (from the Matrix package) but neither works. One of them says array format isn't supported, the other reports something indecipherable about Fortran. Here's the file contents. Can't get much simpler than that! %%MatrixMarket matrix array real general > %This file contains LIBFM glo...
2017 Nov 20
2
package check fail on Windows-release only?
..., drop0, expand, expm, facmul, fac2sparse, fac2Sparse, forceSymmetric, T2graph, graph2T, anyDuplicatedT, uniqTsparse, isTriangular, isDiagonal, isLDL, is.null.DN, invPerm, lu, nearPD, nnzero, formatSpMatrix, formatSparseM, .formatSparseSimple, printSpMatrix, printSpMatrix2, qrR, rankMatrix, readHB, readMM, sparse.model.matrix, sparseVector, symmpart, skewpart, tril, triu, updown, pack, unpack, .updateCHMfactor, .validateCsparse, writeMM, cBind, rBind ERROR: lazy loading failed for package 'rockchalk' * removing 'd:/Rcompile/CRANpkg/lib/3.4/rockchalk' * restoring previous 'd:/Rcom...
2012 Jan 18
1
kmeans clustering on large but sparse matrix
Hi, I have a 60k*600k matrix, which exceed the vector length limit of 2^32-1. But it's rather sparse, only 0.02% has value. So I save is as MarketMatrix (mm) file, it's about 300M in size. I use readMM in Matrix package to read it in. If do so, the data type becomes dgTMatrix in 'Matrix' package instead of the common matrix type. The problem is, if I run k-means only on part of the data, to make sure the vector length do not exceed 2^32-1, there's no problem at all. Meaning that the...
2017 Nov 21
0
package check fail on Windows-release only?
...parse, fac2Sparse, forceSymmetric, T2graph, graph2T, > anyDuplicatedT, uniqTsparse, isTriangular, isDiagonal, isLDL, > is.null.DN, invPerm, lu, nearPD, nnzero, formatSpMatrix, > formatSparseM, .formatSparseSimple, printSpMatrix, printSpMatrix2, > qrR, rankMatrix, readHB, readMM, sparse.model.matrix, sparseVector, > symmpart, skewpart, tril, triu, updown, pack, unpack, > .updateCHMfactor, .validateCsparse, writeMM, cBind, rBind > ERROR: lazy loading failed for package 'rockchalk' > * removing 'd:/Rcompile/CRANpkg/lib/3.4/rockchalk...
2015 Apr 23
3
Usar una matriz sparse desde python a R
Hola erreros Estoy rizando el rizo con esto de las matrices sparse y he encontrado la forma de hacerlo en python, que va rapidísimo. Por tanto tengo una matriz sparse en un objeto python con esta info: <138493x26744 sparse matrix of type '<type 'numpy.int64'> Quiero hacer lo mismo con R pero me he topado con la lentitud de los bucles para rellenar la sparse (también por mi