コード例 #1
0
TEST(QST, TestConstructWithVector) {
    Vector4cd vecCol(1, 1, 0, 1); vecCol.normalize();
    Matrix<std::complex< double >, 1, 4> vecRow(1, 1, 0, 1); vecRow.normalize();
    Matrix4cd res = vecCol * vecRow;
        
    HilbertSpace space(4);
    QuantumState state(vecCol, space);
    
    EXPECT_EQ(true, res.isApprox(state.densityMatrix()));
}
コード例 #2
0
ファイル: sqltable.cpp プロジェクト: hukka-mail-ru/chess
void SqlTable::Insert( const CMyStr* strCol, const CMyStr* strVal )
{
	TVecMyStr vecCol(1);
	TVecMyStr vecVal(1);

	vecCol.at(0) = strCol;
	vecVal.at(0) = strVal;

	Insert(vecCol, vecVal);

}