Search found 9 matches

Go to advanced search

by Axelle
Sun Oct 28, 2012 4:29 pm
Forum: 1ste Bachelor
Topic: [IP - Python] Class Matrix
Replies: 6
Views: 7365

Re: [IP - Python] Class Matrix

Ik zie net dat het self.solution = [[0 for row in range(other_matrix.n)] for column in range(self.m)]
moet zijn, en dat return self.solution mist.
dat lost de error al op maar niet het feit dat ik de foute matrix terugkrijg :(
by Axelle
Sun Oct 28, 2012 4:24 pm
Forum: 1ste Bachelor
Topic: [IP - Python] Class Matrix
Replies: 6
Views: 7365

Re: [IP - Python] Class Matrix

timvdm wrote:Een m*n matrix vermenigvuldigen met een p*q matrix levert een m*q matrix op dus:

Code: Select all


self.solution = [[0] * other_matrix.n for col in range(self.n)]
Is da ni gewoon int verkort wa ik heb geschreven? want ik krijg nog steeds dezelfde fout.
by Axelle
Sun Oct 28, 2012 2:37 pm
Forum: 1ste Bachelor
Topic: [IP - Python] Class Matrix
Replies: 6
Views: 7365

[IP - Python] Class Matrix

Weet iemand wa er verkeerd loopt? class Matrix(object): """Represents and manipulates matrixes""" def __init__(self, m=1, n=1): """initializer""" self.m = m self.n = n self.mx = [[0]*n for row in range(m)] self.solution = [] def __str__(self): """string formatter for print use""" strmx = '\n'.join([...
by Axelle
Mon Oct 01, 2012 1:55 am
Forum: 1ste Bachelor
Topic: [CS] Introduction to UNIX
Replies: 37
Views: 28404

Re: [CS] Introduction to UNIX

Had hetzelfde probleem bij m, ik snap het principe wel maar ik krijg het niet in dezelfde file. Of mag je het gewoon in een andere file zetten?
by Axelle
Fri Sep 28, 2012 8:02 pm
Forum: 1ste Bachelor
Topic: [CS] Introduction to UNIX
Replies: 37
Views: 28404

Re: [CS] Introduction to UNIX

Oh ik zie het nu, echt bedankt (:
by Axelle
Fri Sep 28, 2012 7:10 pm
Forum: 1ste Bachelor
Topic: [CS] Introduction to UNIX
Replies: 37
Views: 28404

Re: [CS] Introduction to UNIX

Heb trouwens nog een vraagje.. bij blok 2, vragen a) cd ~/color tar -cvzf color.tgz * b) echo FFA500 > orange c) echo FF0080 > purple d) gunzip color.tgz e) tar -uf color.tgz * f) gzip color.tar Tegen vraag f, zou ik terug een archief color moeten hebben dat geupdate is, maar in de plaats daarvan he...
by Axelle
Fri Sep 28, 2012 2:20 pm
Forum: 1ste Bachelor
Topic: Collegerooster
Replies: 4
Views: 6429

Re: Collegerooster

Bedankt! ^.^
by Axelle
Fri Sep 28, 2012 2:16 pm
Forum: 1ste Bachelor
Topic: [CS] Introduction to UNIX
Replies: 37
Views: 28404

Re: [CS] Introduction to UNIX

Ahzo, ja dat is ook waar, wou eigenlijk gewoon weten of er een bepaalde command voor was. Blijkt dus dat je eigenlijk zelf een beetje mag nadenken hoe je het het makkelijkst doet..
En Tim, zie het ook net, geen idee waarom tbh.. heb het aangepast ^.^
Thanks!
by Axelle
Fri Sep 28, 2012 12:18 am
Forum: 1ste Bachelor
Topic: [CS] Introduction to UNIX
Replies: 37
Views: 28404

Re: [CS] Introduction to UNIX

Bij onderwerp 2 (Archiving), vraag (g) Remove the color directory, but keep the archive.
> mag je daar gewoon het archief naar de parent dir verplaatsen en dan met rm -rf de dir verwijderen, of ..

Go to advanced search