Mentions légales du service

Skip to content
Snippets Groups Projects
Commit acecb391 authored by hhakim's avatar hhakim
Browse files

Minor fixes in option parsing of member functions of matfaust LazyLinearOp.

parent 38a78b12
No related branches found
No related tags found
No related merge requests found
...@@ -39,8 +39,8 @@ classdef LazyLinearOp < handle % needed to use references on objects ...@@ -39,8 +39,8 @@ classdef LazyLinearOp < handle % needed to use references on objects
p = inputParser; p = inputParser;
validDtype = @(dtype) any(strcmp(dtype, {'complex', 'double', 'single', 'undefined'})); validDtype = @(dtype) any(strcmp(dtype, {'complex', 'double', 'single', 'undefined'}));
addOptional(p, 'dtype', 'undefined', validDtype) addParameter(p, 'dtype', 'undefined', validDtype)
addOptional(p, 'root_obj', 'none') addParameter(p, 'root_obj', 'none')
parse(p, varargin{:}) parse(p, varargin{:})
L.dtype = p.Results.dtype; L.dtype = p.Results.dtype;
...@@ -535,7 +535,7 @@ classdef LazyLinearOp < handle % needed to use references on objects ...@@ -535,7 +535,7 @@ classdef LazyLinearOp < handle % needed to use references on objects
p = inputParser; p = inputParser;
validDtype = @(dtype) any(strcmp(dtype, {'complex', 'double', 'single', 'undefined'})); validDtype = @(dtype) any(strcmp(dtype, {'complex', 'double', 'single', 'undefined'}));
addOptional(p, 'dtype', 'undefined', validDtype) addParameter(p, 'dtype', 'undefined', validDtype)
parse(p, varargin{:}) parse(p, varargin{:})
dtype = p.Results.dtype; dtype = p.Results.dtype;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment