8 std::vector<double>
linsolve(std::vector<std::vector<double> >
const& A, std::vector<double>
const& b);
9 std::vector<std::vector<double> >
linsolve(std::vector<std::vector<double> >
const& A, std::vector<std::vector<double> >
const& B);
12 std::size_t
num_rows (std::vector<std::vector<double> >
const& in);
13 std::size_t
num_cols (std::vector<std::vector<double> >
const& in);
14 std::size_t
max_cols (std::vector<std::vector<double> >
const& in);
15 std::vector<double>
get_row (std::vector<std::vector<double> >
const& in,
size_t row);
16 std::vector<double>
get_col (std::vector<std::vector<double> >
const& in,
size_t col);
17 bool is_squared(std::vector<std::vector<double> >
const& in);
18 std::vector<std::vector<double> >
make_squared(std::vector<std::vector<double> >
const& in);
21 double multiply( std::vector<double>
const& A, std::vector<double>
const& B);
22 std::vector<double>
multiply(std::vector<std::vector<double> >
const& A, std::vector<double>
const& B);
23 std::vector<std::vector<double> >
multiply(std::vector<std::vector<double> >
const& A, std::vector<std::vector<double> >
const& B);
25 double dot_product(std::vector<double>
const& a, std::vector<double>
const& b);
26 std::vector<double>
cross_product(std::vector<double>
const& a, std::vector<double>
const& b);
28 std::vector<std::vector<double> >
transpose(std::vector<std::vector<double> >
const& in);
29 std::vector<std::vector<double> >
invert(std::vector<std::vector<double> >
const& in);
33 std::string
vec_to_string(std::vector<std::vector<double> >
const& A);
35 std::string
vec_to_string( std::vector<double>
const& a,
const char *fmt);
36 std::string
vec_to_string(std::vector<std::vector<double> >
const& A,
const char *fmt);
std::vector< double > linsolve(std::vector< std::vector< double > > const &A, std::vector< double > const &b)
Publish the linear algebra solver.
double dot_product(std::vector< double > const &a, std::vector< double > const &b)
std::size_t num_rows(std::vector< std::vector< double > > const &in)
Some shortcuts and regularly needed operations.
std::string vec_to_string(double const &a)
std::vector< std::vector< double > > transpose(std::vector< std::vector< double > > const &in)
std::vector< std::vector< double > > invert(std::vector< std::vector< double > > const &in)
std::size_t max_cols(std::vector< std::vector< double > > const &in)
bool is_squared(std::vector< std::vector< double > > const &in)
std::vector< std::vector< double > > make_squared(std::vector< std::vector< double > > const &in)
std::vector< double > get_row(std::vector< std::vector< double > > const &in, size_t row)
double multiply(std::vector< double > const &A, std::vector< double > const &B)
Define some basic math operations for vectors.
std::vector< double > cross_product(std::vector< double > const &a, std::vector< double > const &b)
std::vector< double > get_col(std::vector< std::vector< double > > const &in, size_t col)
std::size_t num_cols(std::vector< std::vector< double > > const &in)