Skip to content

linspaced_array returns int, but should return real #3022

@bob-carpenter

Description

@bob-carpenter

Description

The linspaced_array function returns integers when it should return real numbers.

Thanks to Rodrigo Silva for reporting on the forums.

Example

transformed data {
  array[5] real y = linspaced_array(5, 1.1, 5.5);
  print("y = ", y);
}

Output is:

Chain [3] y = [1,2,3,4,5]

Expected output

y = [1.1,2.2,3.3,4.4,5.5]

Current Version:

v4.8.1

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions