html
html
1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<button onclick="trainNn()">train</button>
<button onclick="practice()">practice</button>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
hey ! i am trying to make an open source matrix library.you can contribute to this library.
existing functions are
1.add,sub,div,and mult scaler number to matrix
2.add,dub,mult,div one matrix with other
3.dot produnct || matrix produnt
4.transpose matrix(rows to cols , cols to rows)
5.copy
6.randomize the values
*/
class Matrix
{
constructor(x,y)
{
this.rows=x;
this.cols=y;
this.grid=[];
for(var i=0;i<this.rows;i++)
{
this.grid[i]=[];
for(var j=0;j<this.cols;j++)
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run