Skip to content

Commit aab5693

Browse files
authored
Merge pull request #1634 from SCIInstitute/eigenUpgrade
Eigen upgrade to 3.3.3
2 parents c7b59fb + b7bcf3f commit aab5693

File tree

1,143 files changed

+141567
-45521
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,143 files changed

+141567
-45521
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,4 @@ cmake_install.cmake
2828
install_manifest.txt
2929
CTestTestfile.cmake
3030
DartConfiguration.tcl
31-
bin*
3231
cmake

src/Core/Algorithms/BrainStimulator/ElectrodeCoilSetupAlgorithm.cc

Lines changed: 58 additions & 82 deletions
Large diffs are not rendered by default.

src/Core/Algorithms/BrainStimulator/Tests/ElectrodeCoilSetupAlgorithmTests.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ using namespace SCIRun::Core::Datatypes;
5151
using namespace SCIRun::Core::Algorithms::BrainStimulator;
5252
using namespace SCIRun::Core::Algorithms;
5353
using namespace SCIRun::TestUtils;
54-
using namespace boost;
55-
using namespace boost::assign;
5654

5755
namespace
5856
{
@@ -97,8 +95,7 @@ TEST(ElectrodeCoilSetupAlgorithmTests, AlgoCorrect)
9795
var8=makeVariable("NY", boost::str(boost::format("%s") % "???"));
9896
var9=makeVariable("NZ", boost::str(boost::format("%s") % "???"));
9997
var10=makeVariable("thickness",boost::str(boost::format("%s") % "2"));
100-
Variable::List tmp;
101-
tmp += var1,var2,var3,var4,var5,var6,var7,var8,var9,var10;
98+
Variable::List tmp{ var1, var2, var3, var4, var5, var6, var7, var8, var9, var10 };
10299
table.push_back(makeVariable("row" + boost::lexical_cast<std::string>(0), tmp));
103100
VariableHandle output(new Variable(Name("Table"), table));
104101
///@Dan: I dont know how to set the table to the GUI so that the module can executed properly.

src/Core/Algorithms/Math/EvaluateLinearAlgebraUnaryAlgo.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ namespace impl
6363
}
6464
virtual void visit(DenseColumnMatrixGeneric<double>& column) override
6565
{
66-
column.transposeInPlace();
66+
column = column.transpose();
6767
}
6868
};
6969
}
@@ -105,7 +105,7 @@ EvaluateLinearAlgebraUnaryAlgorithm::Outputs EvaluateLinearAlgebraUnaryAlgorithm
105105
break;
106106
case FUNCTION:
107107
{
108-
// BUG FIX: the ArrayMathEngine is not well designed for use with sparse matrices, especially allocating proper space for the result.
108+
// BUG FIX: the ArrayMathEngine is not well designed for use with sparse matrices, especially allocating proper space for the result.
109109
// There's no way to know ahead of time, so I'll just throw an error here and require the user to do this type of math elsewhere.
110110
if (matrixIs::sparse(matrix) && (matrix->nrows() * matrix->ncols() > 10000))
111111
{

src/Core/Algorithms/Math/GetMatrixSliceAlgo.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ boost::tuple<MatrixHandle, int> GetMatrixSliceAlgo::runImpl(MatrixHandle matrix,
9090
if (sparse)
9191
{
9292
//TODO: makes a copy of the transpose. Not good. Should test out manually copying elements, trade speed for memory.
93-
return boost::make_tuple(boost::make_shared<SparseRowMatrix>(std::move(sparse->getColumn(index))), max);
93+
return boost::make_tuple(boost::make_shared<SparseRowMatrix>(sparse->getColumn(index)), max);
9494
}
9595
return boost::make_tuple(nullptr, 0);
9696
}

0 commit comments

Comments
 (0)