mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 14:50:44 +01:00
[apps/sequence] Fix SequenceStore: sequences are not memoized but all
kept in the store (because we need all of them to evaluate one sequence). setMemoizedModelAtIndex now store u, v and w sequences in this order to avoid requiring expiring pointers.
This commit is contained in:
@@ -15,9 +15,10 @@ Ion::Storage::Record::ErrorStatus CartesianFunctionStore::addEmptyModel() {
|
||||
return error;
|
||||
}
|
||||
|
||||
void CartesianFunctionStore::setMemoizedModelAtIndex(int cacheIndex, Ion::Storage::Record record) const {
|
||||
ExpressionModelHandle * CartesianFunctionStore::setMemoizedModelAtIndex(int cacheIndex, Ion::Storage::Record record) const {
|
||||
assert(cacheIndex >= 0 && cacheIndex < maxNumberOfMemoizedModels());
|
||||
m_functions[cacheIndex] = CartesianFunction(record);
|
||||
return &m_functions[cacheIndex];
|
||||
}
|
||||
|
||||
ExpressionModelHandle * CartesianFunctionStore::memoizedModelAtIndex(int cacheIndex) const {
|
||||
|
||||
Reference in New Issue
Block a user