IMP logo
IMP Reference Guide  develop.74ba496d88,2026/11/03
The Integrative Modeling Platform
Matrix.h File Reference

Matrices used to store image data Copyright 2007-2026 IMP Inventors. All rights reserved. More...

#include <IMP/em2d/em2d_config.h>
#include "IMP/algebra/Transformation2D.h"
#include <IMP/exception.h>
#include <Eigen/Dense>
#include <cereal/access.hpp>
#include <cereal/cereal.hpp>
#include <cstdint>
#include <limits>
#include <iostream>
#include <string>
#include <vector>
+ Include dependency graph for Matrix.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 IMP
 Base functionality and abstract base classes for representation, scoring and sampling.
 
 IMP::em2d
 Restraints using electron microscopy 2D images (class averages).
 

Typedefs

typedef Eigen::Array< double,
Eigen::Dynamic, Eigen::Dynamic,
Eigen::RowMajor > 
IMP::em2d::DoubleMatrix
 Matrix of doubles, used to store the data of an image. More...
 
typedef Eigen::Array< int,
Eigen::Dynamic, Eigen::Dynamic,
Eigen::RowMajor > 
IMP::em2d::IntMatrix
 Matrix of ints, used for masks and labels. More...
 
template<class T >
using IMP::em2d::internal::RowMajorArray = Eigen::Array< T, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor >
 A matrix of elements of type T, stored in row-major order. More...
 

Functions

template<class Archive , class T >
void cereal::load (Archive &ar, IMP::em2d::internal::RowMajorArray< T > &m)
 
template<class Archive , class T >
void cereal::save (Archive &ar, const IMP::em2d::internal::RowMajorArray< T > &m)
 Serialize a matrix as its number of rows and columns, then its data. More...
 
void IMP::em2d::show (const DoubleMatrix &m, std::ostream &out=std::cout)
 Prints a matrix. More...
 
void IMP::em2d::write_matrix (const DoubleMatrix &m, std::string name)
 Quick and dirty way of writing a matrix to a Spider image. More...
 

Detailed Description

Matrices used to store image data Copyright 2007-2026 IMP Inventors. All rights reserved.

Definition in file Matrix.h.