UFC

Using std::vector or boost::multi_array would make ufc easier to use

Registered by Martin Sandve Alnæs

UFC has several 2D arrays implemented as double**, both as members and function arguments.

Using a flat double* would make the interface easier to use in many cases.

Using a flat std::vector<double> would be even easier to use, at no performance penalty and no significant dependency.

Using a boost::multi_array<double,2> would retain the easy to generate and read A[i][j] syntax, at the cost of a boost dependency, and eventual performance penalties (could be zero).

Blueprint information

Status:
Started
Approver:
None
Priority:
Essential
Drafter:
None
Direction:
Needs approval
Assignee:
Anders Logg
Definition:
Approved
Series goal:
None
Implementation:
Started
Milestone target:
None
Started by
Martin Sandve Alnæs

Related branches

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.