Bugzilla – Attachment 133 Details for
Bug 37
sparse row-major multiplication crashes depending on matrix sizes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
This bugzilla service is closed. All entries have been migrated to
https://gitlab.com/libeigen/eigen
[patch]
Patch for src/Sparse/SparseSparseProduct.h
SparseSparseProduct.patch (text/plain), 630 bytes, created by
Oliver Ruepp
on 2011-03-08 11:37:23 UTC
(
hide
)
Description:
Patch for src/Sparse/SparseSparseProduct.h
Filename:
MIME Type:
Creator:
Oliver Ruepp
Created:
2011-03-08 11:37:23 UTC
Size:
630 bytes
patch
obsolete
>--- SparseSparseProduct.h 2011-03-03 12:01:24.585788996 +0100 >+++ /usr/local/include/eigen3/Eigen/src/Sparse/SparseSparseProduct.h 2011-03-08 11:25:10.323511000 +0100 >@@ -132,8 +132,15 @@ > float ratioLhs = float(lhs.nonZeros())/(float(lhs.rows())*float(lhs.cols())); > float avgNnzPerRhsColumn = float(rhs.nonZeros())/float(cols); > float ratioRes = std::min(ratioLhs * avgNnzPerRhsColumn, 1.f); >- >- res.resize(rows, cols); >+ >+ if (ResultType::IsRowMajor) >+ { >+ res.resize(cols, rows); >+ } >+ else >+ { >+ res.resize(rows, cols); >+ } > res.reserve(Index(ratioRes*rows*cols)); > for (Index j=0; j<cols; ++j) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 37
:
8
|
130
|
131
| 133