Opened 5 years ago

Closed 5 years ago

#885 closed enhancement (fixed)

reuse blas_result in assignment from Matrix Expression

Reported by: Peter Owned by: Peter
Priority: major Milestone: yat 0.15
Component: utility Version: trunk
Keywords: Cc:


Rather than using the tmp gsl_matrix returned from MatrixExpression?, pass in the blas_result_ and assign to that, and then in end of assignment swap blas_result_ and m_. In the case that matrix does not change dimension (relatively common case), allocations can be avoided.

Change History (2)

comment:1 Changed 5 years ago by Peter

Owner: changed from Jari Häkkinen to Peter
Status: newassigned

comment:2 Changed 5 years ago by Peter

Resolution: fixed
Status: assignedclosed

(In [3653]) closes #885. Change interface of MatrixExpression? so we can assign data to a passed gsl_matrix (blas_result_) and avoid memory allocation when not needed

Note: See TracTickets for help on using tickets.