RcsPySim
A robot control and simulation library
MatNd_based.cpp File Reference
#include "MatNd_based.h"
#include <Rcs_macros.h>
#include <Rcs_MatNd.h>
#include <algorithm>
#include <vector>
Include dependency graph for MatNd_based.cpp:

Go to the source code of this file.

Functions

void MatNd_checkShapeEq (MatNd *m1, MatNd *m2)
 
void findAllBitCombinations (MatNd *allComb)
 

Function Documentation

◆ findAllBitCombinations()

void findAllBitCombinations ( MatNd *  allComb)

Find all unique combinations of 0s and 1s for N binary events.

Parameters
[out]allComb2^N x N output matrix containing the combinations, with N being the number of events that could be 0 or 1

Definition at line 48 of file MatNd_based.cpp.

◆ MatNd_checkShapeEq()

void MatNd_checkShapeEq ( MatNd *  m1,
MatNd *  m2 
)

Check if the shapes of two matrices match by comparing the row and column size. If they dont't match, the program is exited with a failure.

Parameters
[in]m1first matrix
[in]m2second matrix

Definition at line 40 of file MatNd_based.cpp.