42 cout <<
"DMatrix2x1:" <<endl;
43 cout <<
" | 0 |" <<endl;
44 cout <<
"----------------------" <<endl;
45 for (
unsigned int i=0;i<2;i++){
46 cout <<
" "<<i<<
" |" << setw(11)<<setprecision(4) <<
mA[i] << endl;
74 mA->v=_mm_setzero_pd();
79 mA->v=_mm_setr_pd(x,y);
104 void Set(
double c1,
double c2){
105 mA->v=_mm_setr_pd(c1,c2);
118 return DMatrix2x1(_mm_sub_pd(GetV(),m2.GetV()));
123 return DMatrix2x1(_mm_add_pd(GetV(),m2.GetV()));
127 cout <<
"DMatrix2x1:" <<endl;
128 cout <<
" | 0 |" <<endl;
129 cout <<
"----------------------" <<endl;
130 for (
unsigned int i=0;i<2;i++){
131 cout <<
" "<<i<<
" |" << setw(11)<<setprecision(4) <<
mA->d[i] << endl;
147 return DMatrix2x1(_mm_mul_pd(M.GetV(),_mm_set1_pd(c)));
void Set(double c1, double c2)
DMatrix2x1 operator+(const DMatrix2x1 &m2) const
DMatrix2x1 operator*(const double c, const DMatrix2x1 &M)
#define ALIGNED_16_BLOCK_PTR(TYPE, NUM, PTR)
DMatrix2x1 operator-(const DMatrix2x1 &m2) const
double & operator()(int row)
DMatrix2x1(double x, double y)
#define ALIGNED_16_BLOCK(TYPE, NUM, PTR)