Linear equation library and interface