numlinalg/RLinearAlgebra.jl

Frobenius Norm Based Probability Distribution

Opened this issue · 0 comments

Write a function that computes a probability distribution over the rows or columns of a matrix, $A$

  1. Computes the frobenius norm of $A$, $\|A\|_F^2$
  2. Computes norm squared of each row/column
  3. Returns vector of each (row/column norm squared)/ $\|A\|_F^2$
    See Page 5 for a description in the row case
  • Add a folder in linear_samplers called induced_distributions
  • Add file to that folder that Implements function that takes in a matrix, as input and a boolean indicating if a row or column distribution should be used. Should return a Weights data structure
  • add include statement for file with method in linear_samplers.jl
  • Export function in RLinearAlgebra.jl
  • Add tests for the function
  • Add a section under docs/src/api/linear_samplers.md about Matrix Induced Probability Distributions
  • Add docstring reference to the created function under this new section