Skip to content

meaningless operations (e.g. vector-vector product) produce result #1

@goretkin

Description

@goretkin

I could be mistaken, but I expected errors here:

using TensorAlgebra: VectorSpace, Covector

V = VectorSpace(:V,Float64)
v = Vector(V,[1,2,3])
α = Covector(V,[1,2,3])

@show v(v)
@show α(α)
v(v) = 14.0
α(α) = 14.0

Or I expected something like an outer product e.g.

julia> Float64[1,2,3] * Float64[1,2,3]'
3×3 Array{Float64,2}:
 1.0  2.0  3.0
 2.0  4.0  6.0
 3.0  6.0  9.0

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