Skip to content

rand/randn/randexp/randisometry(rng, T, space) broken #544

Description

@lkdvos

3-arg call with explicit rng, element/storage type, and a single TensorSpace throws MethodError: no method matching one(::typeof(domain)) — domain is the TensorKit function, not a space. Reproduced: randn(Random.default_rng(), Float64, ℂ^2). No test covers this arity.

src/tensors/tensor.jl:396. Fix: one(codomain) instead of one(domain).

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions