Skip to content

Slight fix to Command 11 in Section0-Pre_Work #40

Description

@anzelpwj

For command 11 in Section 0

# Draw 2 independent draws from a standard normal using `x = np.random.randn(2)`, and compute `nu` using `L @ x + mu`

I found that this returns a 2x2 matrix because numpy doesn't massage the 1-D x into a 2-D column column vector. x = np.random.randn(2, 1) resolves this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions