Skip to content

Commit e5f4435

Browse files
committed
TM: fix types
1 parent fe53a31 commit e5f4435

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/htm/algorithms/TemporalMemory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,13 +427,13 @@ void TemporalMemory::activateCells(const SDR &activeColumns, const bool learn) {
427427
const auto columnForSegment = [&](Segment segment) {
428428
return connections.cellForSegment(segment) / cellsPerColumn_;
429429
};
430-
const auto identity = [](const UInt a) {return a;}; //TODO use std::identity when c++20
430+
const auto identity = [](const ElemSparse a) {return a;}; //TODO use std::identity when c++20
431431

432432
for (auto &&columnData : groupBy( //group by columns, and convert activeSegments & matchingSegments to cols.
433433
sparse, identity,
434434
activeSegments_, columnForSegment,
435435
matchingSegments_, columnForSegment)) {
436-
UInt column;
436+
Segment column;
437437
vector<Segment>::const_iterator activeColumnsBegin, activeColumnsEnd,
438438
columnActiveSegmentsBegin, columnActiveSegmentsEnd,
439439
columnMatchingSegmentsBegin, columnMatchingSegmentsEnd;

0 commit comments

Comments
 (0)