Skip to content

Matrix(no_init()) #907

@romainfrancois

Description

@romainfrancois

The constructor does not set nrows. https://github.com/RcppCore/Rcpp/blob/master/inst/include/Rcpp/vector/Matrix.h#L92

    explicit Matrix( const no_init_matrix& obj) {
        VECTOR::set__( Rf_allocMatrix( RTYPE, obj.nrow(), obj.ncol() ) );
    }

I have a patch that I'll submit as a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions