Skip to content

Commit 737bb2c

Browse files
authored
Update README.md
1 parent 93e096f commit 737bb2c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

linear_algebra_python/README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ This module contains some useful classes and functions for dealing with linear a
1313

1414
- constructor(components : list) : init the vector
1515
- set(components : list) : changes the vector components.
16-
- __str__() : toString method
16+
- \_\_str\_\_() : toString method
1717
- component(i : int): gets the i-th component (start by 0)
18-
- size() : gets the size of the vector (number of components)
18+
- \_\_len\_\_() : gets the size / length of the vector (number of components)
1919
- euclidLength() : returns the eulidean length of the vector.
2020
- operator + : vector addition
2121
- operator - : vector subtraction
@@ -31,12 +31,13 @@ This module contains some useful classes and functions for dealing with linear a
3131
- computes the axpy operation
3232
- function randomVector(N,a,b)
3333
- returns a random vector of size N, with random integer components between 'a' and 'b'.
34+
3435
- class Matrix
3536
- This class represents a matrix of arbitrary size and operations on it.
3637

3738
**Overview about the methods:**
3839

39-
- __str__() : returns a string representation
40+
- \_\_str\_\_() : returns a string representation
4041
- operator * : implements the matrix vector multiplication
4142
implements the matrix-scalar multiplication.
4243
- changeComponent(x,y,value) : changes the specified component.
@@ -45,6 +46,7 @@ This module contains some useful classes and functions for dealing with linear a
4546
- height() : returns the height of the matrix
4647
- operator + : implements the matrix-addition.
4748
- operator - _ implements the matrix-subtraction
49+
4850
- function squareZeroMatrix(N)
4951
- returns a square zero-matrix of dimension NxN
5052
- function randomMatrix(W,H,a,b)

0 commit comments

Comments
 (0)