takane
Validators for ArtifactDB file formats
Loading...
Searching...
No Matches
takane::compressed_sparse_matrix Namespace Reference

Definitions for compressed sparse matrices. More...

Functions

void validate (const std::filesystem::path &path, const ObjectMetadata &metadata, Options &options)
 
size_t height (const std::filesystem::path &path, const ObjectMetadata &metadata, Options &options)
 
std::vector< size_t > dimensions (const std::filesystem::path &path, const ObjectMetadata &metadata, Options &options)
 

Detailed Description

Definitions for compressed sparse matrices.

Function Documentation

◆ dimensions()

std::vector< size_t > takane::compressed_sparse_matrix::dimensions ( const std::filesystem::path & path,
const ObjectMetadata & metadata,
Options & options )
inline
Parameters
pathPath to the directory containing a compressed sparse matrix.
metadataMetadata for the object, typically read from its OBJECT file.
optionsValidation options.
Returns
Dimensions of the matrix.

◆ height()

size_t takane::compressed_sparse_matrix::height ( const std::filesystem::path & path,
const ObjectMetadata & metadata,
Options & options )
inline
Parameters
pathPath to the directory containing a compressed sparse matrix.
metadataMetadata for the object, typically read from its OBJECT file.
optionsValidation options.
Returns
Number of rows in the matrix.

◆ validate()

void takane::compressed_sparse_matrix::validate ( const std::filesystem::path & path,
const ObjectMetadata & metadata,
Options & options )
inline
Parameters
pathPath to a directory containing a compressed sparse matrix.
metadataMetadata for the object, typically read from its OBJECT file.
optionsValidation options.