Skip to content

Update complete_compressor to allow for vector inputs #126

@nathanielpritchard

Description

@nathanielpritchard

Describe the bug
When you call complete_compressor(Gaussian(), x::Vector) you get an undefined error. In reality there is no reason that this should not work. The solution will be to change the type of the second entry of the function to AbstractArray rather than AbstractMatrix.

To Reproduce
Please include the code that you have written that is resulting in the bug. To know how to format the code in the issue please see https://help.github.com/articles/basic-writing-and-formatting-syntax/.

using RLinearAlgebra
using LinearAlgebra

x = rand(100)

S = complete_compressor(Gaussian(), x)

Expected behavior
This should return a Gaussian compressor with 100 columns and 2 rows.

Screenshots
None

Desktop (please complete the following information):
This is an issue for all versions and desktop types.

Additional context
None

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions