Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
This repository was archived by the owner on Nov 19, 2020. It is now read-only.

BUG: Matrix.TransposeAndDotWithDiagonal(this T1[][] a, T2[] diagonal) #289

@kindermannhubert

Description

@kindermannhubert

I believe there is a bug in implementation of Matrix.TransposeAndDotWithDiagonal for jagged arrays because there is an expression 'a.GetLength(1)' which works only when the input 'a' is multidimensional array and it throws an 'out of range' exception.

There should be 'a[0].Length' instead (if we suppose all members of array are the same length).

Same problem is in methods Matrix.TransposeAndDotWithDiagonal(this T1[][] a, T2[] diagonal, T3[][] result).

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