On Tue, Jul 27, 2010 at 11:36, Skipper Seabold wrote:
> On Tue, Jul 27, 2010 at 12:00 PM, Robert Kern wrote:
>> On Tue, Jul 27, 2010 at 07:51, Skipper Seabold wrote:
>>> On Mon, Jul 26, 2010 at 10:05 PM, Alan G Isaac wrote:
But I am still confused about the use case.
What is the scala
On Tue, Jul 27, 2010 at 12:00 PM, Robert Kern wrote:
> On Tue, Jul 27, 2010 at 07:51, Skipper Seabold wrote:
>> On Mon, Jul 26, 2010 at 10:05 PM, Alan G Isaac wrote:
>>> But I am still confused about the use case.
>>> What is the scalar- (or 1d-array-) returning procedure
>>> invokedbefore takin
On Tue, Jul 27, 2010 at 10:01 AM, Alan G Isaac wrote:
>> On Mon, Jul 26, 2010 at 10:05 PM, Alan G Isaac wrote:
>>> But I am still confused about the use case.
>>> What is the scalar- (or 1d-array-) returning procedure
>>> invoked before taking the determinant?
>
>
> On 7/27/2010 8:51 AM, Skipper
On Tue, Jul 27, 2010 at 07:51, Skipper Seabold wrote:
> On Mon, Jul 26, 2010 at 10:05 PM, Alan G Isaac wrote:
>> But I am still confused about the use case.
>> What is the scalar- (or 1d-array-) returning procedure
>> invokedbefore taking the determinant?
>
> Recently I ran into this trying to ma
> On Mon, Jul 26, 2010 at 10:05 PM, Alan G Isaac wrote:
>> But I am still confused about the use case.
>> What is the scalar- (or 1d-array-) returning procedure
>> invoked before taking the determinant?
On 7/27/2010 8:51 AM, Skipper Seabold wrote:
> Recently I ran into this trying to make the lo
On Mon, Jul 26, 2010 at 10:05 PM, Alan G Isaac wrote:
> But I am still confused about the use case.
> What is the scalar- (or 1d-array-) returning procedure
> invokedbefore taking the determinant?
>
Recently I ran into this trying to make the log-likelihood of a
multivariate and univariate autore
On 7/26/2010 8:18 PM, Skipper Seabold wrote:
> np.linalg.det(np.array([[2]]))
> #2.0
>
> which should either fail or if not, then I think np.linalg.det should
> handle scalars and scalars as 1d arrays
It should not fail, because it follows from standard definitions.
(E.g., it is the base case of a
On Mon, Jul 26, 2010 at 4:51 PM, Alan G Isaac wrote:
> On 7/26/2010 8:22 PM, Joshua Holbrook wrote:
>> imo, the determinant of a scalar should be defined as itself, based on
>> the definition of the determinant.
>
> What definition do you have in mind?
>
> Alan Isaac
>
>
>
> __
On 7/26/2010 8:22 PM, Joshua Holbrook wrote:
> imo, the determinant of a scalar should be defined as itself, based on
> the definition of the determinant.
What definition do you have in mind?
Alan Isaac
___
NumPy-Discussion mailing list
NumPy-Discuss
On Mon, Jul 26, 2010 at 6:22 PM, Joshua Holbrook wrote:
> On Mon, Jul 26, 2010 at 4:18 PM, Skipper Seabold
> wrote:
> > On Mon, Jul 26, 2010 at 7:38 PM, Charles R Harris
> > wrote:
> >>
> >>
> >> On Mon, Jul 26, 2010 at 5:05 PM, Skipper Seabold
> >> wrote:
> >>>
> >>> On Mon, Jul 26, 2010 at 5:
On Mon, Jul 26, 2010 at 4:18 PM, Skipper Seabold wrote:
> On Mon, Jul 26, 2010 at 7:38 PM, Charles R Harris
> wrote:
>>
>>
>> On Mon, Jul 26, 2010 at 5:05 PM, Skipper Seabold
>> wrote:
>>>
>>> On Mon, Jul 26, 2010 at 5:48 PM, Alan G Isaac wrote:
>>> > On 7/26/2010 12:45 PM, Skipper Seabold wrot
On Mon, Jul 26, 2010 at 7:38 PM, Charles R Harris
wrote:
>
>
> On Mon, Jul 26, 2010 at 5:05 PM, Skipper Seabold
> wrote:
>>
>> On Mon, Jul 26, 2010 at 5:48 PM, Alan G Isaac wrote:
>> > On 7/26/2010 12:45 PM, Skipper Seabold wrote:
>> >> Right now np.linalg.det does not handle scalars or 1d (scal
On Mon, Jul 26, 2010 at 5:05 PM, Skipper Seabold wrote:
> On Mon, Jul 26, 2010 at 5:48 PM, Alan G Isaac wrote:
> > On 7/26/2010 12:45 PM, Skipper Seabold wrote:
> >> Right now np.linalg.det does not handle scalars or 1d (scalar) arrays.
> >
> > I don't have a real opinion on changing this, but I
On Mon, Jul 26, 2010 at 5:48 PM, Alan G Isaac wrote:
> On 7/26/2010 12:45 PM, Skipper Seabold wrote:
>> Right now np.linalg.det does not handle scalars or 1d (scalar) arrays.
>
> I don't have a real opinion on changing this, but I am curious
> to know the use case, as the current behavior seems
U
On 7/26/2010 12:45 PM, Skipper Seabold wrote:
> Right now np.linalg.det does not handle scalars or 1d (scalar) arrays.
I don't have a real opinion on changing this, but I am curious
to know the use case, as the current behavior seems
a) correct and b) to provide an error check.
Cheers,
Alan
Right now np.linalg.det does not handle scalars or 1d (scalar) arrays.
It first tests that an array is 2d, then if it is square. This seems
redundant to me.
This currently works
In [20]: np.linalg.det([[1]])
Out[20]: 1.0
but
In [21]: np.linalg.det([1])
LinAlgError: 1-dimensional array given.
16 matches
Mail list logo