Opened 11 years ago

Closed 3 years ago

#8277 closed defect (duplicate)

Using matrix() to convert between sparse and dense.

Reported by: hivert Owned by: hivert
Priority: major Milestone: sage-8.2
Component: linear algebra Keywords: sparse matrix conversion
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

A call to matrix does not change the sparsity:

    sage: mat = matrix(ZZ, [[1,1],[1,1]], sparse=False)
    sage: type(mat)
    <type 'sage.matrix.matrix_integer_dense.Matrix_integer_dense'>
    sage: mat2 = matrix(ZZ, mat, sparse=True)
    sage: type(mat2)
    <type 'sage.matrix.matrix_integer_dense.Matrix_integer_dense'>

Change History (6)

comment:1 Changed 11 years ago by AlexGhitza

  • Component changed from algebra to linear algebra

comment:2 Changed 8 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:3 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:4 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:5 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4

comment:6 Changed 3 years ago by jdemeyer

  • Authors Florent Hivert deleted
  • Milestone changed from sage-6.4 to sage-8.2
  • Resolution set to duplicate
  • Status changed from new to closed

Fixed in #24742.

Note: See TracTickets for help on using tickets.