goldshtn / linux-tracing-workshop Goto Github PK
View Code? Open in Web Editor NEWExamples and hands-on labs for Linux tracing tools workshops
License: MIT License
Examples and hands-on labs for Linux tracing tools workshops
License: MIT License
When I compile the matexp.cc with g++ I get belows errors.
[mbilgen@centos7 linux-tracing-workshop]$ g++ matexp.cc -g -o matexp
matexp.cc: In member function ‘matrix<T> matrix<T>::operator+(const matrix<T>&) const’:
matexp.cc:26:19: error: ‘invalid_argument’ is not a member of ‘std’
throw std::invalid_argument("matrix dimensions don't match");
^
matexp.cc:27:14: error: ‘result’ does not name a type
auto result = *this;
^
matexp.cc:30:28: error: there are no arguments to ‘result’ that depend on a template parameter, so a declaration of ‘result’ must be available [-fpermissive]
result(i, j) += other(i, j);
^
matexp.cc:30:28: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
matexp.cc:31:16: error: ‘result’ was not declared in this scope
return result;
^
matexp.cc: In member function ‘matrix<T> matrix<T>::operator*(const matrix<T>&) const’:
matexp.cc:35:19: error: ‘invalid_argument’ is not a member of ‘std’
throw std::invalid_argument("multiplication implemented only "
^
matexp.cc:38:19: error: ‘invalid_argument’ is not a member of ‘std’
throw std::invalid_argument("matrix dimensions don't match");
^
matexp.cc: In constructor ‘exponentiator<T>::exponentiator(matrix<T>, int)’:
matexp.cc:55:14: error: ‘move’ is not a member of ‘std’
mat_(std::move(mat)), exponent_(exp) {
^
matexp.cc: In member function ‘matrix<T> exponentiator<T>::operator()()’:
matexp.cc:58:14: error: ‘a’ does not name a type
auto a = mat_;
^
matexp.cc:60:13: error: ‘a’ was not declared in this scope
a = a * mat_;
^
matexp.cc:62:16: error: ‘a’ was not declared in this scope
return a;
^
matexp.cc: In member function ‘matrix<float> io::read()’:
matexp.cc:72:19: error: ‘invalid_argument’ is not a member of ‘std’
throw std::invalid_argument("unable to open input file");
^
matexp.cc:77:23: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
matrix<float> res{ rows, cols };
^
matexp.cc:77:39: error: in C++98 ‘res’ must be initialized by constructor, not by ‘{...}’
matrix<float> res{ rows, cols };
^
matexp.cc: In member function ‘void io::exp_to(std::string, int)’:
matexp.cc:96:14: error: ‘mat’ does not name a type
auto mat = read();
^
matexp.cc:97:34: error: ‘mat’ was not declared in this scope
exponentiator<float> exp(mat, rounds);
^
matexp.cc: In function ‘int main(int, char**)’:
matexp.cc:112:26: error: ‘atoi’ is not a member of ‘std’
prog.exp_to(argv[3], std::atoi(argv[2]));
^
The buggy folder contains a bunch of Java application samples that are used as demos. Turn them into full-blown labs similar to the ones we have for Node and C/C++.
It would be good to cover a few container-specific examples in the labs:
Hey Sasha, The Gatos example is great but it seems not working under netcore 3.1.
Is there anything we can make it work with netcore 3.1?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.