Skip to content

copyMats MatchError #154

@winstrom

Description

@winstrom

Hi,

While trying to get BIDMach running with an IMat input and not using a GPU, I got a MatchError from the copyMats function in Model.scala line 254.

I changed the code to:

if (useDouble) {
    to(i) = from(i) match {
    case aa:FMat => DMat(aa)
    case aa:SMat => SDMat(aa)
    case aa:DMat => aa;
    case aa:SDMat => aa;
    case aa:IMat => aa;
    }
} else {
    to(i) = from(i) match {
    case aa:FMat => aa
    case aa:SMat => aa
    case aa:DMat => FMat(aa);
    case aa:SDMat => SMat(aa);
    case aa:IMat => aa;
    }
}

which seemed to fix the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions