DiSMEC++
dense_and_sparse.cpp File Reference
#include "dense_and_sparse.h"
#include "utils/throw_error.h"
#include "stats/timer.h"
#include "margin_losses.h"
#include "utils/eigen_generic.h"
#include "doctest.h"

Go to the source code of this file.

Classes

struct  anonymous_namespace{dense_and_sparse.cpp}::L2Regularizer
 
struct  anonymous_namespace{dense_and_sparse.cpp}::ZeroPhi
 

Namespaces

 anonymous_namespace{dense_and_sparse.cpp}
 

Macros

#define DENSE_PART(source)   source.head(dense_features().cols())
 
#define SPARSE_PART(source)   source.tail(sparse_features().cols())
 

Functions

 TEST_CASE ("pure-regularization")
 

Variables

constexpr const stat_id_t anonymous_namespace{dense_and_sparse.cpp}::STAT_PERF_MATMUL {7}
 

Macro Definition Documentation

◆ DENSE_PART

#define DENSE_PART (   source)    source.head(dense_features().cols())

Definition at line 59 of file dense_and_sparse.cpp.

◆ SPARSE_PART

#define SPARSE_PART (   source)    source.tail(sparse_features().cols())

Definition at line 60 of file dense_and_sparse.cpp.

Function Documentation

◆ TEST_CASE()

TEST_CASE ( "pure-regularization"  )

Definition at line 278 of file dense_and_sparse.cpp.