Displaying 7 results from an estimated 7 matches for "symmetricmatrix".
2007 Apr 23
1
how to convert the lower triangle of a matrix to a symmetricmatrix
Sorry if this answer was already given, or if I miss the point,
but did you have a look to "lowerTriangle" and "upperTriangle" functions
in the "gdata" package ?
# example
# A<-matrix(rnorm(9),3,3)
# B<-B<-matrix(NA,dim(A)[1],dim(A)[2])
# lowerTriangle(B)<-lowerTriangle(A)
# upperTriangle(B)<-lowerTriangle(A)
# diag(B)<-diag(A)
Hope this helps,
2018 Feb 06
1
gdistance::shortestPath throws error "not a symmetric matrix"
...or in asMethod(object) :
not a symmetric matrix; consider forceSymmetric() or symmpart()
The output of dput(.traceback()) is
pairlist("stop(\"not a symmetric matrix; consider forceSymmetric() or symmpart()\")",
"asMethod(object)",
"as(Laplacian,\"symmetricMatrix\")",
".Laplacian(x)", ".flowMap(x, ci, cj, tc)",
".local(x, origin, goal, ...)",
c("passage(conduct_Tobler, origin =sites at coords[5, ], goal = sites at coords[3, ", " ])"),
c("passage(conduct_Tobler, origin = sites at coords...
2009 May 15
1
Matrix package,solve() errors and crashes Please help
>
> Hello All,
>
Please help me with this problem.I have been having this problem for over a
month now and I could not find any information.I later realised that error
is with MATRIX package.
I am working on graph object using IGRAPH version 0.5.2-2 package & wanted
to do Bonacich Power.
What I have is undirected GRAPH.
This is my graph object.
The file 'Bonacich
2006 Jul 24
1
conflict of package "Matrix" and summary of lme object
After loading the package "Matrix" (version 0.995-12), using the summary
function with an lme (package nlme version 3.1-75) object results in an
error message saying
Fehler in dim(x) : kein Slot des Namens "Dim" f?r dieses Objekt der
Klasse "correlation"
(translated: 'Error in dim(x) : no slot of the name "Dim" for this
object of class
2018 Apr 23
4
R 3.5.0 fails its regression test suite on Linux/x86_64
...b
| > [1,] 2 1
| > [2,] 1 2
| >
| > Matrix> (As <- Matrix(A, dimnames = list(NULL,NULL)))# -> symmetric
| > 2 x 2 Matrix of class "dsyMatrix"
| > [,1] [,2]
| > [1,] 2 1
| > [2,] 1 2
| >
| > Matrix> stopifnot(is(As, "symmetricMatrix"),
| > Matrix+ is(Matrix(0, 3,3), "sparseMatrix"),
| > Matrix+ is(Matrix(FALSE, 1,1), "sparseMatrix"))
| 430,436c562,564
| < A: function (x, y, ...)
| < {
| < B <- function(a, b, ...) {
| < match.call()
| <...
2018 Apr 23
0
R 3.5.0 fails its regression test suite on Linux/x86_64
...;
> | > Matrix> (As <- Matrix(A, dimnames = list(NULL,NULL)))# -> symmetric
> | > 2 x 2 Matrix of class "dsyMatrix"
> | > [,1] [,2]
> | > [1,] 2 1
> | > [2,] 1 2
> | >
> | > Matrix> stopifnot(is(As, "symmetricMatrix"),
> | > Matrix+ is(Matrix(0, 3,3), "sparseMatrix"),
> | > Matrix+ is(Matrix(FALSE, 1,1), "sparseMatrix"))
> | 430,436c562,564
> | < A: function (x, y, ...)
> | < {
> | < B <- function(a, b, ...) {
>...
2019 Jul 08
5
Format printing inside a matrix
Hi Abby,
Thanks a lot for your paraphrasing and your suggestion!
The problem of wrapping the list into a S3/S4 object, i.e. subclassing array
or matrix, is that one also has to define a bunch of methods for subsetting,
joining, etc, in order to make it behave like a list array. The reason is that
most R functions for subsetting, joining, etc. do not preserve class
attributes of the input, which