Skip to content

M.kernel() gives the kernel when M acts on row vectors from the right -- Document this; add better examples #1587

@mwhansen

Description

@mwhansen
sage: M = matrix([[1,2,3],[1,2,4],[2,4,7]])
sage: M.kernel()

Free module of degree 3 and rank 1 over Integer Ring
Echelon basis matrix:
[ 1  1 -1]
sage: v = vector([1, 1, -1])
sage: M*v
(0, -1, -1)
sage: v*M
(0, 0, 0)

This is not what most people expect. Either the behavior should be changed so that it gives the kernel when acting on columns from the left or some documentation should make the current behavior very clear.

CC: @aghitza @jasongrout

Component: linear algebra

Keywords: matrix, kernel

Issue created by migration from https://trac.sagemath.org/ticket/1587

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions