[SciPy-dev] Difference between A = sparse.lil_matrix((3, 3) , dtype=complex) and A = sparse.lil_matrix((3, 3), complex)
Sat Feb 16 14:51:33 CST 2008
On Sat, 16 Feb 2008 14:43:04 -0600
"Nathan Bell" <email@example.com> wrote:
> On Feb 16, 2008 2:21 PM, Nils Wagner
>> Hi all,
>> Can someone explain the difference between
>> A = sparse.lil_matrix((3, 3),dtype=complex) and
>> A = sparse.lil_matrix((3, 3),complex)
>> The first definition produces a complex matrix while
>> the second one results in a r e a l matrix.
>> This is counterintuitive.
> The latter case, 'complex' is being assigned to the
> (which was ignored). This usage now raises an
> You should always use keyword= for keyword arguments
> relying on their order.
> Nathan Bell firstname.lastname@example.org
> Scipy-dev mailing list
Thank you very much for the explanation.
More information about the Scipy-dev