R/pdims.R
pdims.nlists.Rd
Gets the dimensions of each parameter of an object.
# S3 method for class 'nlists' pdims(x, ...)
An object.
Other arguments passed to methods.
A named list of integer vectors of the dimensions of each parameter.
Other dimensions: dims(), ndims(), npdims()
dims()
ndims()
npdims()
pdims(nlists(nlist(x = 1:3))) #> $x #> [1] 3 #> pdims(nlists( nlist(y = 3, zz = matrix(2:5, 2)), nlist(y = 5, zz = matrix(1:4, 2)) )) #> $y #> [1] 1 #> #> $zz #> [1] 2 2 #>