eidors_obj

PURPOSE

EIDORS_OBJ: maintains EIDORS internals

SYNOPSIS

function [obj_id, extra_out] = eidors_obj(type,name, varargin )

DESCRIPTION

EIDORS_OBJ: maintains EIDORS internals
USAGE: to get eidors_version
version = eidors_obj('eidors_version')
USAGE: to get interpreter version:
version = eidors_obj('interpreter_version')
USAGE: to get path to EIDORS:
path = eidors_obj('eidors_path');
USAGE: to cache values (not recommended)
obj_id = eidors_obj('set-cache',obj, cachename,value, [time])
[obj, obj_id] = eidors_obj('get-cache',obj, cachename)
this will get or set the values of cached properties of the object.
example: % set jacobian
obj_id = eidors_obj('set-cache',cache_obj, 'jacobian', J);
example: % get jacobian or '[]' if not set
[J, obj_id] = eidors_obj('get-cache',cache_obj, 'jacobian');
It is recommended to combine in cache_obj the minimum set of variables on
which the value to be cached depends.
example: % cache_obj for jacobian
cache_obj = {img.fwd_model.nodes, img.fwd_model.elems ...
img.elem_data, img.fwd_model.jacobian}
NOTE that rather than directly using eidors_obj to set and get cache, it
is recommended to use eidors_cache with a function_handle.
example:
J = eidors_cache(@calc_jacobian_adjoint,img,'jacobian');
See also: EIDORS_CACHE