Struct treerite::DMatrix[][src]

pub struct DMatrix<F> { /* fields omitted */ }
Expand description

Data matrix used in Treerite.

Implementations

Create a DMatrix from any type that can be converted to a 2d ndarray::ArrayView. This function is zero copy.

Create a single row DMatrix from a slice of floats. Useful for prediction for a single instance. This function is zero copy.

Create a csr format DMatrix. This function is zero copy.

Number of rows in this DMatrix

Number of columns in this DMatrix

Trait Implementations

Executes the destructor for this type. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.