Skip to content

problem in ?GramSchmidt #27

@john-d-fox

Description

@john-d-fox

Hi,

I noticed that ?GramSchmidt has this example:

# non-invertible matrix; hence, its basis is not orthonormal
(xx <- matrix(c( 1:3, 3:1, 1, 0, -1), 3, 3))
crossprod(xx)
(zz <- GramSchmidt(xx))
zapsmall(crossprod(zz))

The statement that the basis isn't orthonormal is wrong and contradicted by the last line of the example. Maybe what was meant is that its dimension is less than the number of columns in xx?

John

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