Created first files for neural networks, empthy
This commit is contained in:
@@ -54,6 +54,13 @@
|
||||
// Variable difinition like:
|
||||
panic::real_t x = 2.4;
|
||||
|
||||
panic::tensor::real_vector a(3);
|
||||
panic::tensor::uint_vector b(3);
|
||||
panic::tensor::int_vector c(10);
|
||||
|
||||
panic::tensor::real_matrix A(2,2, 1);
|
||||
panic::tensor::uint_matrix B(2,2, 2);
|
||||
panic::tensor::int_matrix C(2,2, 3);
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------------
|
||||
// FUNCTION PROTOTYPE
|
||||
@@ -63,9 +70,7 @@ panic::real_t x = 2.4;
|
||||
|
||||
int main(void) {
|
||||
|
||||
panic::tensor::real_vector a(3);
|
||||
panic::tensor::uint_vector b(3);
|
||||
panic::tensor::int_vector c(10);
|
||||
|
||||
a[2] = 1.2;
|
||||
b[2] = 3;
|
||||
c[2] = -3;
|
||||
@@ -77,9 +82,6 @@ int main(void) {
|
||||
std::cout << panic::constants::pi << std::endl;
|
||||
std::cout << 1.23249238423847 << std::endl;
|
||||
|
||||
panic::tensor::real_matrix A(2,2, 1);
|
||||
panic::tensor::uint_matrix B(2,2, 2);
|
||||
panic::tensor::int_matrix C(2,2, 3);
|
||||
A(1,0) = 1.2;
|
||||
B(1,0) = 3;
|
||||
C(1,0) = -2;
|
||||
@@ -89,5 +91,7 @@ int main(void) {
|
||||
panic::io::print_matrix(C);
|
||||
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user