Linear algebra library using delayed-evaluation and run-time code generation