Functions
timeMatrix.cpp File Reference
#include <iostream>
#include <gtsam/base/timing.h>
#include <gtsam/base/Matrix.h>
Include dependency graph for timeMatrix.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 
double timeCollect (size_t p, size_t m, size_t n, bool passDims, size_t reps)
 
double timeColumn (size_t reps)
 
double timeHouseholder (size_t reps)
 
double timeMatrixInsert (size_t reps)
 
double timeVScaleColumn (size_t m, size_t n, size_t reps)
 
double timeVScaleRow (size_t m, size_t n, size_t reps)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 265 of file timeMatrix.cpp.

◆ timeCollect()

double timeCollect ( size_t  p,
size_t  m,
size_t  n,
bool  passDims,
size_t  reps 
)

Definition at line 38 of file timeMatrix.cpp.

◆ timeColumn()

double timeColumn ( size_t  reps)

Results: Alex's Machine (reps = 200000)

  • ublas matrix_column : 4.63 sec
  • naive implementation : 4.70 sec

reps = 2000000

  • rev 2100 : 45.11 sec

Definition at line 161 of file timeMatrix.cpp.

◆ timeHouseholder()

double timeHouseholder ( size_t  reps)

Definition at line 209 of file timeMatrix.cpp.

◆ timeMatrixInsert()

double timeMatrixInsert ( size_t  reps)

Results: (Alex's machine) reps: 200000

Initial (boost matrix proxies) - 12.08 Direct pointer method - 4.62

Definition at line 241 of file timeMatrix.cpp.

◆ timeVScaleColumn()

double timeVScaleColumn ( size_t  m,
size_t  n,
size_t  reps 
)

Definition at line 87 of file timeMatrix.cpp.

◆ timeVScaleRow()

double timeVScaleRow ( size_t  m,
size_t  n,
size_t  reps 
)

Definition at line 123 of file timeMatrix.cpp.



gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:40:57