Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Inverse of singular matrix
Post: RE: Inverse of singular matrix

(May-04-2019, 10:42 AM)scidam Wrote: This matrix is of shape (30, 20). Therefore, it couldn't be inverted in traditional sense. The main question here is why do you need to invert such matrix? May b...
Divanova94 Data Science 4 6,774 May-04-2019, 10:51 AM
    Thread: Inverse of singular matrix
Post: Inverse of singular matrix

How one can invert this singular matrix? m1 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, ...
Divanova94 Data Science 4 6,774 May-04-2019, 10:12 AM
    Thread: First for loop stops after first iteration
Post: RE: First for loop stops after first iteration

(May-01-2019, 03:01 PM)Divanova94 Wrote: [quote="buran" pid="79039" dateline="1556719854"]still not sure I understand, but this will produce the desired result. requires python 3.6+ f1 = [['N1M2', '...
Divanova94 General Coding Help 10 8,718 May-01-2019, 04:07 PM
    Thread: First for loop stops after first iteration
Post: RE: First for loop stops after first iteration

(May-01-2019, 02:10 PM)buran Wrote: still not sure I understand, but this will produce the desired result. requires python 3.6+ f1 = [['N1M2', 'N1M3', 'N1M4', 'N1M5']] f2 = ['M1N2','M1N3','M1N4','M1...
Divanova94 General Coding Help 10 8,718 May-01-2019, 03:01 PM
    Thread: First for loop stops after first iteration
Post: RE: First for loop stops after first iteration

(Apr-30-2019, 04:34 PM)buran Wrote: 30X20 would be 600 elements and you have 3200 (160x20). When you are reshaping, the total number of elements can’t be altered. That is why it works with break - f...
Divanova94 General Coding Help 10 8,718 May-01-2019, 01:43 PM
    Thread: First for loop stops after first iteration
Post: RE: First for loop stops after first iteration

(Apr-30-2019, 01:41 PM)buran Wrote: what shape do you want? 30x20 does not work Yes it should be 30x20. But I can simplify the example. The point is to create new lists that for the elements in f1 w...
Divanova94 General Coding Help 10 8,718 Apr-30-2019, 03:54 PM
    Thread: First for loop stops after first iteration
Post: RE: First for loop stops after first iteration

(Apr-30-2019, 12:42 PM)buran Wrote: breakwithout the break statement the output is the following one Output:--------------------------------------------------------------------------- ValueError ...
Divanova94 General Coding Help 10 8,718 Apr-30-2019, 12:47 PM
    Thread: First for loop stops after first iteration
Post: First for loop stops after first iteration

I am creating a matrix array by reading two different lists with for loop. But the second for loop stops after the first iteration. The print output is only with one parameter *1 instead of the all o...
Divanova94 General Coding Help 10 8,718 Apr-30-2019, 12:40 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020