Skip to content

Commit

Permalink
Rename headers to .hpp instead of .h.
Browse files Browse the repository at this point in the history
Since these are C++ headers and .hpp is pretty standard.
  • Loading branch information
etphipp committed Oct 16, 2017
1 parent df6e9ee commit 545b4ef
Show file tree
Hide file tree
Showing 57 changed files with 172 additions and 170 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ INCLUDE_DIRECTORIES (
)
FILE (GLOB genten_headers
${Genten_SOURCE_DIR}/src/*.h
${Genten_SOURCE_DIR}/src/*.hpp
${Genten_SOURCE_DIR}/src/mathlib/*.h
${Genten_SOURCE_DIR}/src/mathlib/*.hpp
)
INSTALL (
FILES ${genten_headers}
Expand Down
10 changes: 5 additions & 5 deletions driver/Genten_Driver_CpAls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
// ************************************************************************
//@HEADER

#include "Genten_IOtext.h"
#include "Genten_CpAls.h"
#include "Genten_Driver_Utils.h"
#include "Genten_SystemTimer.h"
#include "Genten_MixedFormatOps.h"
#include "Genten_IOtext.hpp"
#include "Genten_CpAls.hpp"
#include "Genten_Driver_Utils.hpp"
#include "Genten_SystemTimer.hpp"
#include "Genten_MixedFormatOps.hpp"

enum SPTENSOR_TYPE {
SPTENSOR,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@

using namespace std;

#include "Genten_Util.h"
#include "Genten_IndxArray.h"
#include "Genten_Util.hpp"
#include "Genten_IndxArray.hpp"


string IntToStr( int i ) { std::ostringstream r; r << i; return r.str(); }
Expand Down
2 changes: 1 addition & 1 deletion maintenance/update_headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
SCRIPT=${HOME}/Trilinos/Trilinos/commonTools/refactoring/update-copyright-header.py
HEADER_DIR=$PWD/maintenance

find . -name \*.h -not -path ./kokkos/\* -exec $SCRIPT --copyright-header=${HEADER_DIR}/copyright_header_cpp.txt --file={} \;
find . -name \*.hpp -not -path ./kokkos/\* -exec $SCRIPT --copyright-header=${HEADER_DIR}/copyright_header_cpp.txt --file={} \;
find . -name \*.cpp -not -path ./kokkos/\* -exec $SCRIPT --copyright-header=${HEADER_DIR}/copyright_header_cpp.txt --file={} \;
find . -name \*.c -not -path ./kokkos/\* -exec $SCRIPT --copyright-header=${HEADER_DIR}/copyright_header_cpp.txt --file={} \;
find . -name CMakeLists.txt -not -path ./kokkos/\* -exec $SCRIPT --copyright-header=${HEADER_DIR}/copyright_header_shell.txt --file={} \;
Expand Down
8 changes: 4 additions & 4 deletions performance/Genten_CpAlsAminoAcid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
#include <iostream>
#include <stdio.h>

#include "Genten_CpAls.h"
#include "Genten_IOtext.h"
#include "Genten_Ktensor.h"
#include "Genten_Sptensor.h"
#include "Genten_CpAls.hpp"
#include "Genten_IOtext.hpp"
#include "Genten_Ktensor.hpp"
#include "Genten_Sptensor.hpp"

using namespace std;

Expand Down
18 changes: 9 additions & 9 deletions performance/Genten_CpAlsRandomKtensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@
#include <iostream>
#include <stdio.h>

#include "Genten_CpAls.h"
#include "Genten_FacTestSetGenerator.h"
#include "Genten_IndxArray.h"
#include "Genten_IOtext.h"
#include "Genten_Ktensor.h"
#include "Genten_Sptensor.h"
#include "Genten_SystemTimer.h"
#include "Genten_Driver_Utils.h"
#include "Genten_CpAls.hpp"
#include "Genten_FacTestSetGenerator.hpp"
#include "Genten_IndxArray.hpp"
#include "Genten_IOtext.hpp"
#include "Genten_Ktensor.hpp"
#include "Genten_Sptensor.hpp"
#include "Genten_SystemTimer.hpp"
#include "Genten_Driver_Utils.hpp"

#include "Genten_MixedFormatOps.h"
#include "Genten_MixedFormatOps.hpp"

using namespace std;

Expand Down
18 changes: 9 additions & 9 deletions performance/Genten_CpAlsRandomKtensor_Sweep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@
#include <iostream>
#include <stdio.h>

#include "Genten_CpAls.h"
#include "Genten_FacTestSetGenerator.h"
#include "Genten_IndxArray.h"
#include "Genten_IOtext.h"
#include "Genten_Ktensor.h"
#include "Genten_Sptensor.h"
#include "Genten_SystemTimer.h"
#include "Genten_Driver_Utils.h"
#include "Genten_CpAls.hpp"
#include "Genten_FacTestSetGenerator.hpp"
#include "Genten_IndxArray.hpp"
#include "Genten_IOtext.hpp"
#include "Genten_Ktensor.hpp"
#include "Genten_Sptensor.hpp"
#include "Genten_SystemTimer.hpp"
#include "Genten_Driver_Utils.hpp"

#include "Genten_MixedFormatOps.h"
#include "Genten_MixedFormatOps.hpp"

using namespace std;

Expand Down
12 changes: 6 additions & 6 deletions src/Genten_Array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@
#include <cstring>
#include <limits>

#include "Genten_Array.h"
#include "Genten_MathLibs_Wpr.h"
#include "Genten_portability.h"
#include "Genten_RandomMT.h"
#include "Genten_Util.h"
#include "Genten_Kokkos.h"
#include "Genten_Array.hpp"
#include "Genten_MathLibs_Wpr.hpp"
#include "Genten_portability.hpp"
#include "Genten_RandomMT.hpp"
#include "Genten_Util.hpp"
#include "Genten_Kokkos.hpp"

Genten::Array::
Array(ttb_indx n, bool parallel):
Expand Down
4 changes: 2 additions & 2 deletions src/Genten_Array.h → src/Genten_Array.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
#include <vector>
#include <assert.h>

#include "Genten_Util.h"
#include "Genten_RandomMT.h"
#include "Genten_Util.hpp"
#include "Genten_RandomMT.hpp"

namespace Genten {

Expand Down
20 changes: 10 additions & 10 deletions src/Genten_CpAls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@
#include <stdio.h>
#include <sstream>

#include "Genten_Array.h"
#include "Genten_CpAls.h"
#include "Genten_FacMatrix.h"
#include "Genten_Ktensor.h"
#include "Genten_MixedFormatOps.h"
#include "Genten_Sptensor.h"
#include "Genten_Sptensor_perm.h"
#include "Genten_Sptensor_row.h"
#include "Genten_SystemTimer.h"
#include "Genten_Util.h"
#include "Genten_Array.hpp"
#include "Genten_CpAls.hpp"
#include "Genten_FacMatrix.hpp"
#include "Genten_Ktensor.hpp"
#include "Genten_MixedFormatOps.hpp"
#include "Genten_Sptensor.hpp"
#include "Genten_Sptensor_perm.hpp"
#include "Genten_Sptensor_row.hpp"
#include "Genten_SystemTimer.hpp"
#include "Genten_Util.hpp"

using namespace std;

Expand Down
4 changes: 2 additions & 2 deletions src/Genten_CpAls.h → src/Genten_CpAls.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
*/

#pragma once
#include "Genten_Sptensor.h"
#include "Genten_Ktensor.h"
#include "Genten_Sptensor.hpp"
#include "Genten_Ktensor.hpp"

namespace Genten {

Expand Down
2 changes: 1 addition & 1 deletion src/Genten_FacMatArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
//@HEADER


#include "Genten_FacMatArray.h"
#include "Genten_FacMatArray.hpp"

ttb_indx Genten::FacMatArray::
reals() const
Expand Down
6 changes: 3 additions & 3 deletions src/Genten_FacMatArray.h → src/Genten_FacMatArray.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
*/

#pragma once
#include "Genten_Util.h"
#include "Genten_IndxArray.h"
#include "Genten_FacMatrix.h"
#include "Genten_Util.hpp"
#include "Genten_IndxArray.hpp"
#include "Genten_FacMatrix.hpp"

namespace Genten
{
Expand Down
12 changes: 6 additions & 6 deletions src/Genten_FacMatrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
@brief Implementation of Genten::FacMatrix.
*/

#include "Genten_IndxArray.h"
#include "Genten_FacMatrix.h"
#include "Genten_FacMatArray.h"
#include "Genten_MathLibs_Wpr.h"
#include "Genten_portability.h"
#include "Genten_TinyVec.h"
#include "Genten_IndxArray.hpp"
#include "Genten_FacMatrix.hpp"
#include "Genten_FacMatArray.hpp"
#include "Genten_MathLibs_Wpr.hpp"
#include "Genten_portability.hpp"
#include "Genten_TinyVec.hpp"
#include "CMakeInclude.h"
#include <algorithm> // for std::max with MSVC compiler
#include <assert.h>
Expand Down
8 changes: 4 additions & 4 deletions src/Genten_FacMatrix.h → src/Genten_FacMatrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@

#pragma once

#include "Genten_Array.h"
#include "Genten_IndxArray.h"
#include "Genten_RandomMT.h"
#include "Genten_Util.h"
#include "Genten_Array.hpp"
#include "Genten_IndxArray.hpp"
#include "Genten_RandomMT.hpp"
#include "Genten_Util.hpp"
#include <assert.h>

namespace Genten
Expand Down
14 changes: 7 additions & 7 deletions src/Genten_IOtext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@

using namespace std;

#include "Genten_FacMatrix.h"
#include "Genten_IOtext.h"
#include "Genten_Ktensor.h"
#include "Genten_Sptensor.h"
#include "Genten_Sptensor_perm.h"
#include "Genten_Sptensor_row.h"
#include "Genten_Util.h"
#include "Genten_FacMatrix.hpp"
#include "Genten_IOtext.hpp"
#include "Genten_Ktensor.hpp"
#include "Genten_Sptensor.hpp"
#include "Genten_Sptensor_perm.hpp"
#include "Genten_Sptensor_row.hpp"
#include "Genten_Util.hpp"

#include "CMakeInclude.h"
#ifdef HAVE_BOOST
Expand Down
6 changes: 3 additions & 3 deletions src/Genten_IOtext.h → src/Genten_IOtext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
#include <string>
#include <vector>

#include "Genten_FacMatrix.h"
#include "Genten_Ktensor.h"
#include "Genten_Sptensor.h"
#include "Genten_FacMatrix.hpp"
#include "Genten_Ktensor.hpp"
#include "Genten_Sptensor.hpp"


//! Namespace for the Genten C++ project.
Expand Down
2 changes: 1 addition & 1 deletion src/Genten_IndxArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
// ************************************************************************
//@HEADER

#include "Genten_IndxArray.h"
#include "Genten_IndxArray.hpp"
#include <cstring>
#include <cstdlib>

Expand Down
4 changes: 2 additions & 2 deletions src/Genten_IndxArray.h → src/Genten_IndxArray.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
#include <assert.h>
#include <initializer_list>

#include "Genten_Util.h"
#include "Genten_IndxArray.h"
#include "Genten_Util.hpp"
#include "Genten_IndxArray.hpp"

namespace Genten {

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/Genten_Ktensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
#include <algorithm>
#include <iostream>

#include "Genten_Ktensor.h"
#include "Genten_RandomMT.h"
#include "Genten_IndxArray.h"
#include "Genten_Ktensor.hpp"
#include "Genten_RandomMT.hpp"
#include "Genten_IndxArray.hpp"

Genten::Ktensor::
Ktensor(ttb_indx nc, ttb_indx nd):
Expand Down
8 changes: 4 additions & 4 deletions src/Genten_Ktensor.h → src/Genten_Ktensor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
#pragma once
#include <assert.h>

#include "Genten_FacMatArray.h"
#include "Genten_IndxArray.h"
#include "Genten_RandomMT.h"
#include "Genten_Util.h"
#include "Genten_FacMatArray.hpp"
#include "Genten_IndxArray.hpp"
#include "Genten_RandomMT.hpp"
#include "Genten_Util.hpp"

namespace Genten
{
Expand Down
2 changes: 1 addition & 1 deletion src/Genten_MathLibs.h → src/Genten_MathLibs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#pragma once

#include "CMakeInclude.h"
#include "Genten_Util.h"
#include "Genten_Util.hpp"

typedef ptrdiff_t ttb_blas_int;
typedef ptrdiff_t ttb_vml_int;
Expand Down
4 changes: 2 additions & 2 deletions src/Genten_MathLibs_Wpr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
//@HEADER


#include "Genten_MathLibs.h"
#include "Genten_MathLibs_Wpr.h"
#include "Genten_MathLibs.hpp"
#include "Genten_MathLibs_Wpr.hpp"

//
// Double precision
Expand Down
2 changes: 1 addition & 1 deletion src/Genten_MathLibs_Wpr.h → src/Genten_MathLibs_Wpr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

#pragma once

#include "Genten_Util.h"
#include "Genten_Util.hpp"


namespace Genten
Expand Down
12 changes: 6 additions & 6 deletions src/Genten_MixedFormatOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@

#include <assert.h>

#include "Genten_Util.h"
#include "Genten_FacMatrix.h"
#include "Genten_Ktensor.h"
#include "Genten_MixedFormatOps.h"
#include "Genten_Sptensor.h"
#include "Genten_TinyVec.h"
#include "Genten_Util.hpp"
#include "Genten_FacMatrix.hpp"
#include "Genten_Ktensor.hpp"
#include "Genten_MixedFormatOps.hpp"
#include "Genten_Sptensor.hpp"
#include "Genten_TinyVec.hpp"

#define USE_NEW_MTTKRP 1
#define USE_NEW_MTTKRP_PERM 1
Expand Down
12 changes: 6 additions & 6 deletions src/Genten_MixedFormatOps.h → src/Genten_MixedFormatOps.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@

#pragma once

#include "Genten_FacMatrix.h"
#include "Genten_Ktensor.h"
#include "Genten_Sptensor.h"
#include "Genten_Sptensor_perm.h"
#include "Genten_Sptensor_row.h"
#include "Genten_Util.h"
#include "Genten_FacMatrix.hpp"
#include "Genten_Ktensor.hpp"
#include "Genten_Sptensor.hpp"
#include "Genten_Sptensor_perm.hpp"
#include "Genten_Sptensor_row.hpp"
#include "Genten_Util.hpp"

namespace Genten
{
Expand Down
2 changes: 1 addition & 1 deletion src/Genten_Sptensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
// ************************************************************************
//@HEADER

#include "Genten_Sptensor.h"
#include "Genten_Sptensor.hpp"

Genten::Sptensor::
Sptensor(ttb_indx nd, ttb_real * sz, ttb_indx nz, ttb_real * vls,
Expand Down
Loading

0 comments on commit 545b4ef

Please sign in to comment.