mcabbott / mcabbott/TensorCast.jl

@cast for remaining n-1 dimensions, e.g, add noise to a tensor of column vectors

Open
#59 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
142
Forks
12
PR merge metrics
No merged PRs in 30d

Description

is there a way to achieve this with TensorCast?

add_white_noise(u::AbstractArray{T}, Σ::AbstractMatrix{T}) where {T<:AbstractFloat} = u + combinedims(rand(MvNormal(zeros(eltype(u),size(u,1)), Σ),size(u)[2:end]))

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading TensorCast's @cast syntax and examples, then compare them with the add_white_noise function shown in the issue. Determine whether @cast can express the operation across the remaining n-1 dimensions of the tensor, and treat support for that expression as done.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.