Skip to content

SDR should return itself (C++) #487

Open
@ctrl-z-9000-times

Description

@ctrl-z-9000-times

Currently in python, the SDR class returns itself after most method calls. This allows several method calls to be chained onto one line. For example:

X = SDR( 1000 ).randomize( .02 )

Currently in C++, the SDR class returns void after most method calls. It should be simple to change the SDR class to return SDR *this and allow clever one liners like:

X = (new SDR({ 1000 }))->randomize( .02 )

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions