2 from return_by_ref
import Matrix, RowMatrix, Vector
10 assert np.array_equal(m_ref,m_copy)
12 m_const_ref = mat.const_ref()
13 assert np.array_equal(m_const_ref,m_copy)
14 assert np.array_equal(m_const_ref,m_ref)
17 assert not np.array_equal(m_ref,m_copy)
18 assert np.array_equal(m_const_ref,m_ref)
31 assert not np.array_equal(m_ref,m_copy)
33 m_const_ref = mat.const_ref()
34 assert np.array_equal(m_const_ref,m_copy)
35 assert not np.array_equal(m_const_ref,m_ref)
38 assert not np.array_equal(m_ref,m_copy)
39 assert not np.array_equal(m_const_ref,m_ref)
50 mat = Matrix(rows,cols)
51 row_mat = RowMatrix(rows,cols)
58 return_by_ref.sharedMemory(
False)