#include <iostream>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include "yang.h"
Go to the source code of this file.
Functions | |
void | error (const char *v) |
Vtr | operator+ (const Vtr &v) |
Vtr | operator- (const Vtr &v) |
Vtr | operator+ (const Vtr &v1, const Vtr &v2) |
Vtr | operator- (const Vtr &v1, const Vtr &v2) |
std::ostream & | operator<< (std::ostream &s, const Vtr &v) |
Vtr | operator* (const double scalar, const Vtr &v) |
Vtr | operator* (const Vtr &v1, const Vtr &v2) |
Vtr | operator/ (const Vtr &v, const double scalar) |
double | dot (const Vtr &v1, const Vtr &v2) |
Mtx | operator- (const Mtx &mat) |
Vtr | operator* (const Vtr &v, const Mtx &mat) |
Mtx | operator- (const Mtx &m1, const Mtx &m2) |
std::ostream & | operator<< (std::ostream &s, const Mtx &mat) |
Definition at line 127 of file yang.cc.
Referenced by Mtx::QRdecomp(), Mtx::QRdecomp_slow(), and Simplex::size().
void error | ( | const char * | v | ) |
Definition at line 11 of file yang.cc.
Referenced by XmlRpc::XmlRpcServer::acceptConnection(), SimpleUDP::bind(), XmlRpc::XmlRpcServer::bindAndListen(), SimpleUDP::connect(), Nps::coordsReqRpcResponse(), SingleHostUnderlayConfigurator::createNode(), KBRTestApp::deliver(), XmlRpc::XmlRpcClient::doConnect(), dot(), oversim::Koorde::findDeBruijnHop(), oversim::Koorde::findNode(), BrooseBucket::get(), Mtx::getcol(), P2pnsCache::getDataAtPos(), BrooseBucket::getDist(), SimpleUDP::getEphemeralPort(), oversim::ChordSuccessorList::getSuccessor(), Broose::handleBucketRequestRpc(), Broose::handleBucketResponseRpc(), XmlRpcInterface::handleCommonAPIPacket(), XmlRpc::XmlRpcClient::handleEvent(), P2pnsCache::handleMessage(), GlobalStatistics::handleMessage(), GlobalCoordinator::handleMessage(), DHTDataStorage::handleMessage(), oversim::ChordSuccessorList::handleMessage(), oversim::ChordFingerTable::handleMessage(), BrooseBucket::handleMessage(), AccessNet::handleMessage(), GiaTokenFactory::handleMessages(), GiaNeighbors::handleMessages(), GiaKeyListModule::handleMessages(), oversim::Koorde::handleRpcDeBruijnRequest(), SimpleGameClient::handleTimerEvent(), oversim::Chord::handleTimerEvent(), Broose::handleTimerEvent(), oversim::Chord::handleUDPMessage(), CBRDHT::handleUpperMessage(), GlobalNodeList::initialize(), InetUnderlayConfigurator::initializeUnderlay(), Kademlia::isSiblingFor(), oversim::Chord::isSiblingFor(), Broose::isSiblingFor(), BasePastry::isSiblingFor(), SingleHostUnderlayConfigurator::migrateNode(), Mtx::operator*(), operator*(), operator+(), Mtx::operator+=(), Vtr::operator+=(), operator-(), Mtx::operator-=(), Vtr::operator-=(), operator/(), Mtx::operator=(), Vtr::operator=(), XmlRpc::XmlRpcClient::parseResponse(), SingleHostUnderlayConfigurator::preKillNode(), SimpleUDP::processCommandFromApp(), SimpleUDP::processUDPPacket(), SimpleUDP::processUndeliverablePacket(), XmlRpc::XmlRpcServerConnection::readHeader(), XmlRpcInterface::readHeader(), XmlRpc::XmlRpcClient::readHeader(), XmlRpc::XmlRpcServerConnection::readRequest(), XmlRpcInterface::readRequest(), XmlRpc::XmlRpcClient::readResponse(), MessageObserver::receivedMessage(), GlobalNodeList::refreshEntry(), GlobalNodeList::registerPeer(), MessageObserver::sentMessage(), Mtx::setcol(), SimpleUDP::unbind(), XmlRpc::XmlRpcDispatch::waitForAndProcessEvents(), XmlRpc::XmlRpcClient::writeRequest(), XmlRpc::XmlRpcServerConnection::writeResponse(), and XmlRpcInterface::writeResponse().
std::ostream& operator<< | ( | std::ostream & | s, | |
const Mtx & | mat | |||
) |
Definition at line 272 of file yang.cc.
00273 { 00274 for (int i = 0; i < mat.rows(); i++) { 00275 s << "| "; 00276 for(int j = 0; j < mat.cols(); j++) { 00277 s.setf(std::ios_base::fixed, std::ios_base::floatfield); 00278 s.precision(4); 00279 s.width(8); 00280 s << mat.ets[i][j]; 00281 } 00282 s << " |" << std::endl; 00283 } 00284 return s; 00285 }