@@ -45,18 +45,17 @@ A library for performing mathematical operations on n-dimensional matrices, vect
4545#nt.matmul(m,m) // matrix multipliation
4646#nt.matmul(c(1,2), r(2,3)) // colum vector times row vector multiplication.
4747#np.trace(m) // trace
48- #np.det(m) /2x2 determinant
48+ #np.det(m) // nxn determinant
4949
5050// printing
5151#nt.print(m, " != " , (1,2)) // long dollar print, see in pdf
5252#nt.p(m, " != " , (1,2)) // short long print print, see in pdf
5353```
5454
55- Since vesion 0.0.4 n-dim matrices are supported as well in most operations.
56-
5755## Supported Features:
5856
5957### Dimensions:
58+
6059Numty uses standard typst list as a base type, most 1d operations like dot are suported directly for them.
6160
6261For matrix specific operations we use 2d arrays / nested arrays, that are also the standard typst list, but nested like in: ((1,2), (1,1)).
@@ -87,8 +86,7 @@ For convenience you can create column or row vectors with the #nt.c and #nt.r fu
8786
8887### Math operators:
8988
90- All operators are element-wise,
91- traditional matrix multiplication is not yet supported.
89+ All operators are element-wise,
9290
9391``` typ
9492#nt.add((0,1,3), 1) // (1,2,4)
@@ -125,8 +123,8 @@ Functions for creating equally spaced indexes in linear and logspace, usefull fo
125123### Matrix
126124
127125``` typ
128- #nt.matmul(m,m ) // matrix multiplication
129- #nt.det(((1,3), (3,4))) // only 2x2 supported for now
126+ #nt.matmul(m,m) // matrix multiplication
127+ #nt.det(((1,3), (3,4))) // nxn matrix determinant
130128#nt.trace(((1,3), (3,4))) // trace of square matrix
131129#nt.transpose(((1,3), (3,4))) // matrix transposition
132130```
0 commit comments