WvStreams
include
wvmatrix.h
1
/* -*- Mode: C++ -*- */
2
#ifndef __WVMATRIX_H
3
#define __WVMATRIX_H
4
5
#include "wvstring.h"
6
7
class
WvMatrix
8
{
9
public
:
10
int
*data;
11
12
int
m;
13
int
n;
14
15
WvMatrix
(
const
int
_m,
const
int
_n,
const
int
*_data = 0);
16
~
WvMatrix
();
17
18
WvMatrix
(
const
WvMatrix
& mx);
19
WvMatrix
& operator= (
const
WvMatrix
& mx);
20
21
int
& operator() (
const
int
row,
const
int
col)
22
{
return
data[n*row + col]; }
23
int
operator() (
const
int
row,
const
int
col)
const
24
{
return
data[n*row + col]; }
25
26
WvMatrix
operator+ (
const
WvMatrix
&rhs)
const
;
27
WvMatrix
operator* (
const
WvMatrix
&rhs)
const
;
28
29
WvString
printable();
30
};
31
32
#endif // __WVMATRIX_H
WvString
WvString is an implementation of a simple and efficient printable-string class.
Definition:
wvstring.h:329
WvMatrix
Definition:
wvmatrix.h:7
Generated by
1.8.17