Skylark (Sketching Library)
0.1
|
#include <iostream>
#include <elemental.hpp>
#include <boost/mpi.hpp>
#include <boost/format.hpp>
#include <skylark.hpp>
Go to the source code of this file.
Typedefs | |
typedef elem::DistMatrix < double, elem::VC, elem::STAR > | matrix_type |
typedef elem::DistMatrix < double, elem::VC, elem::STAR > | rhs_type |
typedef elem::DistMatrix < double, elem::STAR, elem::STAR > | sol_type |
Functions | |
template<typename MatrixType , typename RhsType , typename SolType > | |
void | check_solution (const MatrixType &A, const RhsType &b, const SolType &x, const RhsType &r0, double &res, double &resAtr, double &resFac) |
int | main (int argc, char **argv) |
Variables | |
const int | m = 50000 |
const int | n = 500 |
typedef elem::DistMatrix<double, elem::VC, elem::STAR> matrix_type |
Definition at line 20 of file least_squares.cpp.
typedef elem::DistMatrix<double, elem::VC, elem::STAR> rhs_type |
Definition at line 21 of file least_squares.cpp.
typedef elem::DistMatrix<double, elem::STAR, elem::STAR> sol_type |
Definition at line 22 of file least_squares.cpp.
void check_solution | ( | const MatrixType & | A, |
const RhsType & | b, | ||
const SolType & | x, | ||
const RhsType & | r0, | ||
double & | res, | ||
double & | resAtr, | ||
double & | resFac | ||
) |
Definition at line 25 of file least_squares.cpp.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 42 of file least_squares.cpp.
References skylark::nla::ApproximateLeastSquares(), check_solution(), skylark::nla::FastLeastSquares(), m, and n.
const int m = 50000 |
Definition at line 17 of file least_squares.cpp.
Referenced by skylark::utility::print_t< FullyDistMultiVec< IndexType, ValueType > >::apply(), skylark::nla::ChebyshevLS(), logisticloss::evaluate(), skylark::nla::LSQR(), main(), skylark::nla::iter_solver_op_t< SpParMat< IndexType, ValueType, SpDCCols< IndexType, ValueType > >, FullyDistMultiVec< IndexType, ValueType > >::mat_vec(), hingeloss::proxoperator(), logisticloss::proxoperator(), read_model_file(), skylark::algorithms::regression_solver_t< regression_problem_t< MatrixType, linear_tag, l2_tag, no_reg_tag >, RhsType, SolType, iterative_l2_solver_tag< KrylovMethod > >::solve(), test_main(), and skylark::base::Transpose().
const int n = 500 |
Definition at line 18 of file least_squares.cpp.
Referenced by skylark::algorithms::flinl2_internal::build_precond(), skylark::nla::ChebyshevLS(), squaredloss::evaluate(), ladloss::evaluate(), hingeloss::evaluate(), logisticloss::evaluate(), BlockADMMSolver< T >::InitializeTransformCache(), logexp(), logsumexp(), skylark::nla::LSQR(), main(), skylark::nla::iter_solver_op_t< SpParMat< IndexType, ValueType, SpDCCols< IndexType, ValueType > >, FullyDistMultiVec< IndexType, ValueType > >::mat_vec(), normsquare(), skylark::ml::model_t< InputType, OutputType >::predict(), squaredloss::proxoperator(), ladloss::proxoperator(), logisticloss::proxoperator(), read_model_file(), skylark::algorithms::regression_solver_t< regression_problem_t< MatrixType, linear_tag, l2_tag, no_reg_tag >, RhsType, SolType, iterative_l2_solver_tag< KrylovMethod > >::solve(), test_main(), skylark::base::Transpose(), and skylark::algorithms::flinl2_internal::utcondest().