Skip to content

Instantly share code, notes, and snippets.

@zhangce
Created August 8, 2014 17:18
Show Gist options
  • Select an option

  • Save zhangce/bd12edea2ac0a9d62818 to your computer and use it in GitHub Desktop.

Select an option

Save zhangce/bd12edea2ac0a9d62818 to your computer and use it in GitHub Desktop.
#ifndef _DSTRUCT_H
#define _DSTRUCT_H
#include "common.h"
template<class A, SparsityType SPARSITY>
class Array{
};
template<class A>
class Array<A, DW_DENSE>{
public:
const A* const p;
int n;
Array(const A * const _p, int _n):
p(_p), n(_n){}
};
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment