SIde-Channel Analysis toolKit (SICAK)
Software toolkit for side-channel analysis
|
A class representing a Matrix with 'noOfTraces' power traces, with 'samplesPerTrace' samples per power trace. More...
#include <types_power.hpp>
Public Member Functions | |
PowerTraces () | |
Constructs an empty Matrix with no elements. Needs to be initialized first (init). | |
PowerTraces (size_t samplesPerTrace, size_t noOfTraces) | |
Constructs a Matrix with 'samplesPerTrace' * 'noOfTraces' elements. | |
PowerTraces (size_t samplesPerTrace, size_t noOfTraces, T initVal) | |
Constructs a Matrix with 'samplesPerTrace' * 'noOfTraces' elements and fills it with 'initVal'. | |
PowerTraces (PowerTraces &&other) | |
Move constructor. | |
PowerTraces & | operator= (PowerTraces &&other) |
Move assignment operator. | |
virtual | ~PowerTraces () |
Empty destructor. | |
virtual void | init (size_t samplesPerTrace, size_t noOfTraces) |
Initializes the matrix with a specified number of cols and rows. | |
virtual size_t | samplesPerTrace () const |
Returns number of samples per trace. | |
virtual size_t | noOfTraces () const |
Returns number of power traces. | |
virtual T & | operator() (size_t sample, size_t trace) |
Accesses an element in the matrix. Doesn't check for bounds. | |
virtual const T & | operator() (size_t sample, size_t trace) const |
Accesses an element in the matrix. Doesn't check for bounds. | |
Public Member Functions inherited from Matrix< T > | |
Matrix () | |
Constructs an empty Matrix with no elements. Needs to be initialized first (init). | |
Matrix (size_t cols, size_t rows) | |
Constructs a Matrix with 'cols' * 'rows' elements. | |
Matrix (size_t cols, size_t rows, T initVal) | |
Constructs a Matrix with 'cols' * 'rows' elements and fills it with 'initVal'. | |
Matrix (Matrix &&other) | |
Move constructor. | |
Matrix & | operator= (Matrix &&other) |
Move assignment operator. | |
virtual | ~Matrix () |
Empty destructor. | |
virtual size_t | cols () const |
Returns number of columns. | |
virtual size_t | rows () const |
Returns number of rows. | |
virtual void | init (size_t cols, size_t rows, T initVal) |
Initializes the matrix with a specified number of cols and rows and fills it with 'val'. | |
virtual T * | data () |
Returns a pointer to the contained data. | |
virtual const T * | data () const |
Returns a const pointer to the contained data. | |
virtual size_t | length () const |
Returns number of elements in the container. | |
virtual size_t | size () const |
Returns the size of the contained data (i.e. length * sizeof(T)) | |
virtual void | fill (T val) |
Fills the container with the 'val'. | |
Public Member Functions inherited from MatrixType< T > | |
virtual | ~MatrixType () |
Empty destructor. | |
Public Member Functions inherited from ArrayType< T > | |
virtual | ~ArrayType () |
Empty destructor. | |
Public Member Functions inherited from DataType | |
virtual | ~DataType () |
Empty destructor. | |
Additional Inherited Members | |
Protected Member Functions inherited from MatrixType< T > | |
MatrixType () | |
Protected constructor. | |
Protected Member Functions inherited from ArrayType< T > | |
ArrayType () | |
Protected constructor. | |
Protected Member Functions inherited from DataType | |
DataType () | |
Protected constructor. | |
Protected Attributes inherited from Matrix< T > | |
Vector< T > | m_vector |
A Matrix is composed using a large Vector. | |
size_t | m_cols |
Number of columns. | |
size_t | m_rows |
Number of rows. | |
A class representing a Matrix with 'noOfTraces' power traces, with 'samplesPerTrace' samples per power trace.