Skip to content

illusionaryshelter/auxiliary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

auxiliary

auxiliary macro header for self

this lib is header-only

example:

#define ARRAY_PLAIN(...) {__VA_ARGS__}
#define ARRAY_GEN(name, type, rows, cols, ...) \
	Eigen::Array<type, rows, cols> name({AUX_MAP(cols, ARRAY_PLAIN, __VA_ARGS__)})

the you can write:

ARRAY_GEN(s, float, 4, 2,
		1, 2,
		4, 5,
		7, 8,
		10, 11);

just for fun.

About

auxiliary macro header for self

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages