[ADMB Users] use of .sub

Fowler, Mark Mark.Fowler at dfo-mpo.gc.ca
Thu Feb 28 06:10:02 PST 2013


I'm trying to nail down the proper syntax for employing .sub to identify
portions of a matrix. Made some progress by trial and error, but still
some obstacles. For instance below I try to fill a single given column
with a vector, but get an error message that dvar_matrix::operator
cannot be matched to dvar_vector. This a syntax and/or format problem?

A matrix of age (row) by year (column), trying to fill the right margin.

	utfmat.sub(1,na).sub(ny,ny) = fly;


		Mark Fowler
		Population Ecology Division
		Bedford Inst of Oceanography
		Dept Fisheries & Oceans
		Dartmouth NS Canada
		B2Y 4A2
		Tel. (902) 426-3529
		Fax (902) 426-9710
		Email Mark.Fowler at dfo-mpo.gc.ca
		Home Tel. (902) 461-0708
		Home Email mark.fowler at ns.sympatico.ca


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20130228/9634fcab/attachment.html>


More information about the Users mailing list